joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef214
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
cmp dword [ebp - 8], 0
jne 0x4ef23f
mov ecx, 0x188
mov edx, 0x4ef404
mov eax, 0x4ef444
call fcn.00403e98
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004ef5c8
mov dword [ebp - 0x10], 0xa
lea edi, [ebp - 0x1c]
mov eax, pe_nt_image_headers32
call fcn.00402e00
mov byte [ebp - 9], al
mov esi, dword [ebx + 0x10]
and esi, 0xffff
or esi, 2
mov eax, esi
xor eax, 1
imul esi
shr eax, 8
mov esi, eax
mov edx, dword [ebx + 8]
mov al, byte [ebp - 9]
call fcn.004e0b10
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.004e0b10
mov dword [ebx + 0x10], eax
mov eax, esi
xor al, byte [ebp - 9]
mov byte [edi], al
inc edi
dec dword [ebp - 0x10]
jne 0x4ef253
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004ef5c8
mov dword [ebp - 0x10], 0xa
lea edi, [ebp - 0x1c]
mov esi, dword [ebx + 0x10]
and esi, 0xffff
or esi, 2
mov eax, esi
xor eax, 1
imul esi
shr eax, 8
mov esi, eax
mov al, byte [edi]
mov edx, dword [ebx + 8]
call fcn.004e0b10
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.004e0b10
mov dword [ebx + 0x10], eax
mov eax, esi
xor byte [edi], al
inc edi
dec dword [ebp - 0x10]
jne 0x4ef2ce
mov al, byte [ebp + 0xa]
mov byte [ebp - 9], al
mov esi, dword [ebx + 0x10]
and esi, 0xffff
or esi, 2
mov eax, esi
xor eax, 1
imul esi
shr eax, 8
mov esi, eax
mov edx, dword [ebx + 8]
mov al, byte [ebp - 9]
call fcn.004e0b10
mov edi, eax
mov dword [ebx + 8], edi
and edi, 0xff
add dword [ebx + 0xc], edi
imul edi, dword [ebx + 0xc], 0x8088405
inc edi
mov dword [ebx + 0xc], edi
mov eax, edi
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.004e0b10
mov dword [ebx + 0x10], eax
mov eax, esi
xor al, byte [ebp - 9]
mov byte [ebp - 0x12], al
mov al, byte [ebp + 0xb]
mov byte [ebp - 9], al
mov esi, dword [ebx + 0x10]
and esi, 0xffff
or esi, 2
mov eax, esi
xor eax, 1
imul esi
shr eax, 8
mov esi, eax
mov edx, dword [ebx + 8]
mov al, byte [ebp - 9]
call fcn.004e0b10
mov edi, eax
mov dword [ebx + 8], edi
and edi, 0xff
add dword [ebx + 0xc], edi
imul edi, dword [ebx + 0xc], 0x8088405
inc edi
mov dword [ebx + 0xc], edi
mov eax, edi
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.004e0b10
mov dword [ebx + 0x10], eax
mov eax, esi
xor al, byte [ebp - 9]
mov byte [ebp - 0x11], al
mov byte [ebx + 4], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ef478
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
lea edi, [esp + 4]
mov eax, dword [esp]
cmp byte [eax + 4], 0
jne 0x4ef4a7
mov ecx, 0x1f3
mov edx, 0x4ef548
mov eax, 0x4ef588
call fcn.00403e98
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov dword [edi], eax
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [edi + 4], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov dword [edi + 8], eax
mov esi, ebx
dec ebp
test ebp, ebp
jl 0x4ef51b
inc ebp
mov eax, dword [edi + 8]
and eax, 0xffff
or eax, 2
mov bl, byte [esi]
mov edx, ebx
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor dl, cl
mov byte [esi], dl
mov edx, dword [edi]
mov eax, ebx
call fcn.004e0b10
mov dword [edi], eax
mov eax, dword [edi]
and eax, 0xff
add dword [edi + 4], eax
imul ebx, dword [edi + 4], 0x8088405
inc ebx
mov dword [edi + 4], ebx
mov eax, ebx
shr eax, 0x18
mov edx, dword [edi + 8]
call fcn.004e0b10
mov dword [edi + 8], eax
inc esi
dec ebp
jne 0x4ef4c9
mov eax, dword [esp]
mov edx, dword [edi]
mov dword [eax + 8], edx
mov eax, dword [esp]
mov edx, dword [edi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [esp]
mov edx, dword [edi + 8]
mov dword [eax + 0x10], edx
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], edx
mov ebx, eax
mov dword [ebx + 8], 0x12345678
mov dword [ebx + 0xc], 0x23456789
mov dword [ebx + 0x10], 0x34567890
mov eax, dword [esp]
call fcn.004041b8
mov esi, eax
test esi, esi
jle 0x4ef636
mov edi, 1
mov eax, dword [esp]
mov al, byte [eax + edi - 1]
mov edx, dword [ebx + 8]
call fcn.004e0b10
mov ebp, eax
mov dword [ebx + 8], ebp
and ebp, 0xff
add dword [ebx + 0xc], ebp
imul ebp, dword [ebx + 0xc], 0x8088405
inc ebp
mov dword [ebx + 0xc], ebp
mov eax, ebp
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.004e0b10
mov dword [ebx + 0x10], eax
inc edi
dec esi
jne 0x4ef5fa
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f2168
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00413f9c
mov dword [ebp - 0x18], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4f2000]
call fcn.004f227c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f226a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, 0x30
call fcn.004f2150
test al, al
je 0x4f2239
mov byte [ebp - 5], 5
mov dl, 1
mov eax, dword [0x410998]
call fcn.00403168
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
call fcn.004f2364
mov dl, 1
mov eax, dword [0x4e19cc]
call fcn.004e1dac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0x200
mov edx, 0x400
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004f0134
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00413fac
mov eax, dword [ebp - 0x14]
call fcn.004ea0f0
cmp al, 4
jne 0x4f2239
mov byte [ebp - 5], 6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2271
mov eax, dword [ebp - 0xc]
call fcn.00403198
mov eax, dword [ebp - 0x10]
call fcn.00403198
mov eax, dword [ebp - 0x14]
call fcn.00403198
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00413fac
ret

Function at 0x4f48a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov edi, ecx
dec edi
test edi, edi
jl 0x4f4916
inc edi
mov esi, edx
mov ax, word [ebx + 0xc]
or ax, 2
movzx edx, ax
xor ax, 1
movzx eax, ax
imul edx, eax
shr edx, 8
xor byte [esi], dl
mov edx, dword [ebx + 4]
mov al, byte [esi]
call fcn.004e0b10
mov ebp, eax
mov dword [ebx + 4], ebp
and ebp, 0xff
add dword [ebx + 8], ebp
imul eax, dword [ebx + 8], 0x8088405
inc eax
mov dword [ebx + 8], eax
shr eax, 0x18
xor al, byte [ebx + 0xc]
and eax, 0xff
mov edx, dword [0x566f0c]
mov eax, dword [edx + eax*4]
mov edx, dword [ebx + 0xc]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebx + 0xc], eax
inc esi
dec edi
jne 0x4f48b0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f49a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, eax
mov eax, dword [edi + 0x38]
call fcn.00413f9c
mov dword [esp + 4], eax
xor ebx, ebx
mov byte [esp], 0
jmp 0x4f4a3f
mov eax, edi
call fcn.004f4964
xor ecx, ecx
mov edx, dword [esp + 4]
mov eax, dword [edi + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [edi + 0x10]
mov ecx, 0xc
mov eax, dword [edi + 0x38]
mov ebx, dword [eax]
call dword [ebx + 4]
xor esi, esi
mov eax, edi
call fcn.004f491c
xor byte [edi + esi + 0x10], al
lea edx, [edi + 4]
mov al, byte [edi + esi + 0x10]
call fcn.004f4a6c
inc esi
cmp esi, 0xc
jne 0x4f49eb
cmp byte [edi + 0x20], 0
je 0x4f4a19
mov al, byte [edi + 0x1b]
cmp al, byte [edi + 0x1f]
sete bl
jmp 0x4f4a2f
mov al, byte [edi + 0x1b]
cmp al, byte [edi + 0x1f]
jne 0x4f4a29
mov al, byte [edi + 0x1a]
cmp al, byte [edi + 0x1e]
je 0x4f4a2d
xor ebx, ebx
jmp 0x4f4a2f
mov bl, 1
test bl, bl
jne 0x4f4a3c
lea edx, [edi + 0x30]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx]
inc byte [esp]
test bl, bl
jne 0x4f4a4f
mov al, byte [esp]
cmp al, byte [edi + 0x34]
jb 0x4f49c4
test bl, bl
jne 0x4f4a64
mov dl, 1
mov eax, dword [0x4dd07c]
call fcn.004de2cc
call fcn.00403930
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov edx, dword [edi]
mov eax, ebx
call fcn.004e0b10
mov esi, eax
mov dword [edi], esi
and esi, 0xff
add dword [edi + 4], esi
imul esi, dword [edi + 4], 0x8088405
inc esi
mov dword [edi + 4], esi
mov eax, esi
shr eax, 0x18
mov edx, dword [edi + 8]
call fcn.004e0b10
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
ret
Function at 0x4f69b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor edi, edi
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
je 0x4f69ef
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebx + 0xb8]
mov dl, 1
mov eax, dword [0x4f47a4]
call fcn.004f4814
mov edi, eax
test edi, edi
je 0x4f6a1c
mov eax, dword [ebx + 0xf0]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0xf4]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x30]
mov edx, dword [ebx + 0xb8]
call fcn.00403f8c
mov al, byte [ebx + 0xbc]
mov byte [edi + 0x34], al
mov eax, dword [ebp - 4]
push eax
push edi
lea ecx, [ebx + 4]
mov dl, 1
mov eax, dword [0x4f523c]
call fcn.004f52d0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f6b06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004e7cf0
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x20], al
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
mov eax, esi
call fcn.004e7cdc
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x18], al
mov eax, esi
call fcn.004e7dc8
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x21], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x90]
mov dword [eax + 0x28], edx
mov edx, dword [ebx + 0x94]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x100]
mov dword [eax + 0x30], edx
mov edx, dword [ebx + 0x104]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x40], ebx
cmp byte [ebx + 0x44], 0
je 0x4f6ae5
mov eax, dword [ebp - 0xc]
add eax, 0x3c
mov edx, dword [ebx + 0xc]
call fcn.00403f8c
mov ax, word [ebx + 0xaa]
mov edx, dword [ebp - 0xc]
mov word [edx + 0x44], ax
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x39], 1
mov ax, word [ebx + 0x3c]
mov edx, dword [ebp - 0xc]
mov word [edx + 0x46], ax
mov eax, dword [ebp - 0xc]
call fcn.004f53a8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6b0d
mov eax, dword [ebp - 0xc]
call fcn.00403198
ret

Function at 0x4f8154
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 6]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp edx, dword [ebp + 0xc]
jne 0x4f819b
test edx, edx
jbe 0x4f8197
movzx ebx, word [ebp - 2]
shr ebx, 8
xor bl, byte [eax]
mov byte [ecx], bl
mov bl, byte [eax]
add bl, byte [ebp - 2]
and ebx, 0xff
imul bx, word [ebp - 6]
add bx, word [ebp - 4]
mov word [ebp - 2], bx
inc eax
inc ecx
dec edx
jne 0x4f816f
mov al, 1
jmp 0x4f819d
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4f81a8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 6]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp edx, dword [ebp + 0xc]
jne 0x4f81f0
mov esi, eax
mov eax, ecx
test edx, edx
jbe 0x4f81ec
movzx ecx, word [ebp - 2]
shr ecx, 8
xor cl, byte [esi]
mov byte [eax], cl
add cl, byte [ebp - 2]
and ecx, 0xff
imul cx, word [ebp - 6]
add cx, word [ebp - 4]
mov word [ebp - 2], cx
inc esi
inc eax
dec edx
jne 0x4f81c6
mov al, 1
jmp 0x4f81f2
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4f890c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f8ae9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x114]
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
lea eax, [ebp - 0x10]
call fcn.00403f38
lea eax, [ebp - 0x14]
call fcn.00403f38
xor edi, edi
mov esi, 0x101
lea ebx, [ebp - 0x114]
cmp byte [ebx], 0
je 0x4f8990
lea eax, [ebp - 0x118]
mov dl, byte [ebx]
call fcn.004040e0
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x14]
call fcn.004041c0
jmp 0x4f8ab0
cmp dword [ebp - 8], 0xffffffff
jne 0x4f89b3
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4f8b00
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4f89ca.0
mov eax, dword [ebp - 0x14]
call fcn.0040437c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4f89ca.0
jmp dword [eax*4 + 0x4f89d1]
cmp dword [ebp - 8], 0
jne case.0x4f89ca.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4f8b00
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4f89ca.0
cmp dword [ebp - 8], 1
jne case.0x4f89ca.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4f8b00
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4f89ca.0
cmp dword [ebp - 8], 2
jne case.0x4f89ca.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4f8b00
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4f89ca.0
cmp dword [ebp - 8], 3
jne case.0x4f89ca.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4f8b00
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4f89ca.0
cmp dword [ebp - 8], 4
jne case.0x4f89ca.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4f8b00
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
cmp edi, dword [ebp - 4]
jne 0x4f8aa1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00403f8c
jmp 0x4f8ac3
lea eax, [ebp - 0x14]
call fcn.00403f38
inc edi
cmp byte [ebx + 1], 0
je 0x4f8ab8
inc ebx
dec esi
jne 0x4f896b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8af0
lea eax, [ebp - 0x118]
call fcn.00403f38
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403f5c
ret
Function at 0x4f912c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040436c
xor eax, eax
push ebp
push 0x4f9180
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.0040437c
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA_1
neg eax
sbb eax, eax
neg eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9187
lea eax, [ebp - 4]
call fcn.00403f38
ret

Function at 0x4f9298
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, 0x4f92a4
call fcn.004f9210
ret
Function at 0x4f96dc
Capabilities:
Extract resource via kernel32 functions
Persist via windows service
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f98d5
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004f94d4
mov ebx, eax
test bl, bl
jne 0x4f98b2
mov eax, 0x4f98e8
mov dword [ebp - 8], eax
push 0xa
push 1
push 0
call sub.kernel32.dll_FindResourceA
mov esi, eax
push esi
push 0
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x20], eax
push esi
push 0
call sub.kernel32.dll_SizeofResource
mov edi, eax
lea edx, [ebp - 0x28]
mov eax, 0x4f9904
call fcn.004f9460
mov edx, dword [ebp - 0x28]
mov eax, 0x5695f0
call fcn.00403f8c
mov eax, dword [0x5695f0]
call fcn.004f912c
push 0
push 1
push 2
push 0
push 0
push 0x40000000
mov eax, dword [0x5695f0]
call fcn.0040437c
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4f98b2
test esi, esi
je 0x4f98b2
push 0
lea eax, [ebp - 0x14]
push eax
push edi
mov eax, dword [ebp - 0x20]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4f98b2
cmp edi, dword [ebp - 0x14]
jne 0x4f98b2
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
mov ecx, dword [0x5695f0]
mov edx, 0x4f9914
call fcn.00404204
mov dword [ebp - 0x10], 3
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.004040f0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x4f9924
call fcn.00404204
mov eax, dword [ebp - 0x2c]
call fcn.0040437c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x4f9948
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
call fcn.004041b8
push eax
lea eax, [ebp - 4]
call fcn.00404388
push eax
push 2
push 0
push 0x4f9958
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x4f9964
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x4f996c
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
call fcn.004f9520
mov ebx, eax
call fcn.004f9604
mov eax, 0x4f9904
call fcn.004f912c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f98dc
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00403f5c
lea eax, [ebp - 4]
call fcn.00403f38
ret
Function at 0x4f9c30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f9ca2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, ebx
call fcn.004f9c20
test al, al
jne 0x4f9c8c
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004f99d0
push ebx
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4f9c8c
cmp ebx, 0xffffffff
je 0x4f9c8c
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9ca9
lea eax, [ebp - 8]
call fcn.00403f38
ret

Function at 0x4fa4b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fa68d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x114]
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
lea eax, [ebp - 0x10]
call fcn.00403f38
lea eax, [ebp - 0x14]
call fcn.00403f38
xor edi, edi
mov esi, 0x101
lea ebx, [ebp - 0x114]
cmp byte [ebx], 0
je 0x4fa534
lea eax, [ebp - 0x118]
mov dl, byte [ebx]
call fcn.004040e0
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x14]
call fcn.004041c0
jmp 0x4fa654
cmp dword [ebp - 8], 0xffffffff
jne 0x4fa557
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4fa6a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4fa56e.0
mov eax, dword [ebp - 0x14]
call fcn.0040437c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4fa56e.0
jmp dword [eax*4 + 0x4fa575]
cmp dword [ebp - 8], 0
jne case.0x4fa56e.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4fa6a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4fa56e.0
cmp dword [ebp - 8], 1
jne case.0x4fa56e.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4fa6a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4fa56e.0
cmp dword [ebp - 8], 2
jne case.0x4fa56e.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4fa6a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4fa56e.0
cmp dword [ebp - 8], 3
jne case.0x4fa56e.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4fa6a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
jmp case.0x4fa56e.0
cmp dword [ebp - 8], 4
jne case.0x4fa56e.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4fa6a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
cmp edi, dword [ebp - 4]
jne 0x4fa645
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00403f8c
jmp 0x4fa667
lea eax, [ebp - 0x14]
call fcn.00403f38
inc edi
cmp byte [ebx + 1], 0
je 0x4fa65c
inc ebx
dec esi
jne 0x4fa50f
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa694
lea eax, [ebp - 0x118]
call fcn.00403f38
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403f5c
ret