joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x49134a
cmp dword [ebx + 0x64], 0
jne 0x49134a
cmp dword [ebx + 0x6c], 0
jne 0x49134a
mov edi, esi
jmp 0x4913d1
cmp edi, 0xffffffff
jne 0x491352
dec edi
jmp 0x4913d1
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4913d1
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0049071c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x49139f
mov cx, word [esp]
sub cx, si
jmp 0x4913a1
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x491388
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4913c7
mov cx, word [esp]
sub cx, si
jmp 0x4913c9
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4913b0
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x49142e
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004910bc
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x491419
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x49142e
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x49132a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x497684
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4e6cdc
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4976a6
shr eax, 1
xor eax, 0xedb88320
jmp 0x4976a8
shr eax, 1
dec edx
jne 0x497694
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x49768d
mov byte [0x4e70dc], 1
pop esi
pop ebx
ret

Function at 0x4976c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4e70dc], 0
jne 0x4976db
call fcn.00497684
mov eax, edi
dec eax
test eax, eax
jl 0x497704
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e6cdc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4976e5
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x499c54
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x499c85
dec al
je 0x499cc1
dec al
je 0x499d05
dec al
je 0x499d70
jmp 0x499dfa
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x499dfa
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x499c95
jmp 0x499dfa
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x499dfa
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x499cd1
jmp 0x499dfa
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x499dfa
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x499d33
xor ebp, ebp
jmp 0x499d44
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x499d4d
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x499d15
jmp 0x499dfa
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x499dfa
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x499dc8
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0049770c
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x499d84
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49da44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x49da7c]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x49da5a
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x49da69
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x49da78
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x49e310
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x447f68]
call fcn.00403c30
test al, al
je 0x49e352
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x49e352
mov edx, dword [0x4e57dc]
xor edx, edx
call fcn.004652bc
push 0
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x49e830
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416eb8]
call fcn.00405280
xor eax, eax
push ebp
push 0x49e974
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e14e8], 0
jne 0x49e883
mov ecx, dword [0x4e52a8]
mov dl, 1
mov eax, dword [0x407e34]
call fcn.0040d968
call fcn.00404230
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004032f0
mov eax, ebx
call fcn.004050e0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x49e984
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040634c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004050f0
test eax, eax
jle 0x49e91b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x49e914
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404b00
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404ae8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408db8
test eax, eax
jne 0x49e914
mov ebx, 0x15
jmp 0x49e920
mov ebx, 0x10
jmp 0x49e920
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4e14e8]
call fcn.0049e72c
mov eax, dword [ebp - 8]
call fcn.0049e72c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e97b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040489c
lea eax, [ebp - 0x10]
mov edx, dword [0x416eb8]
call fcn.00405350
ret
Function at 0x4a7c48
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4a7c50
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a7e42
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4a7e58
mov eax, esi
call fcn.004a59d8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004048cc
lea ecx, [ebp - 0x10]
mov edx, 0x4a7e6c
mov eax, esi
call fcn.004a59d8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004048cc
lea ecx, [ebp - 0x14]
mov edx, 0x4a7e84
mov eax, esi
call fcn.004a59d8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004048cc
lea ecx, [ebp - 0x18]
mov edx, 0x4a7ea0
mov eax, esi
call fcn.004a59d8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004048cc
lea ecx, [ebp - 0x1c]
mov edx, 0x4a7ebc
mov eax, esi
call fcn.004a59d8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004048cc
lea ecx, [ebp - 0x24]
mov edx, 0x4a7ed4
mov eax, esi
call fcn.004a59d8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408e28
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004093a0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4a7eec
mov eax, esi
call fcn.004a59d8
mov eax, dword [ebp - 0x28]
call fcn.004a4af0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4a7efc
mov eax, esi
call fcn.004a59d8
mov eax, dword [ebp - 0x2c]
call fcn.004a4af0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4a7f14
mov eax, esi
call fcn.004a59d8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004093a0
inc eax
je 0x4a7de5
lea ecx, [ebp - 0x34]
mov edx, 0x4a7f14
mov eax, esi
call fcn.004a59d8
mov eax, dword [ebp - 0x34]
call fcn.00409364
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040aef0
fstp qword [ebp - 0x3c]
wait
call fcn.0040b288
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4a7e00
lea ecx, [ebp - 0x40]
mov edx, 0x4a7f14
mov eax, esi
call fcn.004a59d8
mov eax, dword [ebp - 0x40]
call fcn.004a4af0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4a7f24
mov eax, esi
call fcn.004a59d8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004048cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7e49
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040489c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040489c
ret
Function at 0x4b40e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4b413a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b40d0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004a375c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004a335c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4141
lea eax, [ebp - 4]
call fcn.00404878
ret

Function at 0x4baa08
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bab79
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 0x4bab54
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404a60
lea eax, [ebp - 0x118]
mov edx, 0x4bab90
call fcn.00404b40
mov eax, dword [ebp - 0x118]
call fcn.00404d38
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4baac6
lea eax, [ebp - 0x111]
call fcn.00409f08
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404968
jmp 0x4baacd
mov eax, esi
call fcn.00404878
cmp bl, 0x61
jae 0x4baaee
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e77c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004048cc
jmp 0x4bab08
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e6f0
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004048cc
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4bab9c
call fcn.0040a5e4
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004048cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bab5b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4bfe64
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.00404d28
xor eax, eax
push ebp
push 0x4bff5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004c17d8
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
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, 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.00409d50
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c0824
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409c34
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c0898
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bff64
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040489c
ret
Function at 0x4bff6c
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.00404d28
xor eax, eax
push ebp
push 0x4c0075
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004c17d8
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
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, 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 0x4c003b
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409d50
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c0824
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409c34
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c0898
jmp 0x4c004d
xor edx, edx
mov eax, ebx
call fcn.004c0824
xor edx, edx
mov eax, ebx
call fcn.004c0898
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c007c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040489c
ret

Function at 0x4c1a34
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d28
xor eax, eax
push ebp
push 0x4c1a92
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004c1b10
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4c1a7a
lea eax, [ebp - 4]
call fcn.004c1b10
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4c1a7c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1a99
lea eax, [ebp - 4]
call fcn.00404878
ret

Function at 0x4c1aa0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d28
xor eax, eax
push ebp
push 0x4c1b04
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 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004c1b10
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a0f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1b0b
lea eax, [ebp - 4]
call fcn.00404878
ret
Function at 0x4c6f54
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 + 0x170]
mov edx, ebx
mov eax, edi
call fcn.004c7188
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.004c7188
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4c6fc8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4c6fed
inc esi
mov eax, edi
call fcn.004c6fac
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004c6f54
inc ebx
dec esi
jne 0x4c6fd7
pop edi
pop esi
pop ebx
ret

Function at 0x4c707c
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.00404d28
xor eax, eax
push ebp
push 0x4c70f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004c6ff4
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004c6fac
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004c6f54
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4c70bc
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c70f8
lea eax, [ebp - 4]
call fcn.00404878
ret
Function at 0x4c7cb4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
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 0x4c7e98
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4c7e54
mov eax, dword [ebp - 4]
call fcn.004c9604
cmp ebx, eax
jge 0x4c7e54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004be57c
mov edx, dword [0x4bf904]
call fcn.00403c54
mov esi, eax
mov eax, esi
call fcn.004c07b8
test al, al
je 0x4c7e4a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4c7e3e
xor eax, eax
push ebp
push 0x4c7e37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004c826c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041c558
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 + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
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 + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404ec4
mov eax, dword [ebp - 8]
call fcn.00404d90
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, 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.004c8030
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7e82
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4c7e36
mov eax, dword [ebp - 4]
call fcn.004c82f0
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a0f4
jmp 0x4c7e82
mov eax, dword [ebp - 8]
call fcn.00404878
jmp 0x4c7e82
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.0040967c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x4174f4]
call fcn.0040d8e8
call fcn.00404230
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7e9f
lea eax, [ebp - 0x54]
call fcn.00404878
ret
Function at 0x4ced64
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0
push 1
push 0x4ced7c
call sub.wininet.dll_InternetCheckConnectionA
cmp eax, 1
sbb eax, eax
inc eax
ret