joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47de88
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f2418]
cmp dword [eax + 0x30], 0
je 0x47df32
cmp dword [ebx + 0x94], 0
jne 0x47df2c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47de18
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47df2c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47def2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47df2c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a8a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47df01
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47ea94
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x47eac9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a98
jmp 0x47ead6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47fbc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47fc09
mov eax, esi
call fcn.00466078
test al, al
je 0x47fc09
mov eax, dword [ebx + 0x84]
call fcn.00465d74
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47fc09
push 0
mov eax, dword [ebx + 0x84]
call fcn.00465d74
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x480d40
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407c54
ret
Function at 0x480e68
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e74
xor eax, eax
push ebp
push 0x480fb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.00480d40
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404e84
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x480f95
xor eax, eax
push ebp
push 0x480f8e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x480f77
xor eax, eax
push ebp
push 0x480f70
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x480f59
xor eax, eax
push ebp
push 0x480f52
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.00480d74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480f59
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480f77
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480f95
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.00480df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480fbd
lea eax, [ebp - 4]
call fcn.004049a8
ret
Function at 0x481d88
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 0x481db2
cmp dword [ebx + 0x64], 0
jne 0x481db2
cmp dword [ebx + 0x6c], 0
jne 0x481db2
mov edi, esi
jmp 0x481e39
cmp edi, 0xffffffff
jne 0x481dba
dec edi
jmp 0x481e39
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x481e39
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00481184
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 0x481e07
mov cx, word [esp]
sub cx, si
jmp 0x481e09
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x481df0
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 0x481e2f
mov cx, word [esp]
sub cx, si
jmp 0x481e31
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x481e18
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x481e96
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.00481b24
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x481e81
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 0x481e96
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x481d92
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4880fc
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4f244c
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x48811e
shr eax, 1
xor eax, 0xedb88320
jmp 0x488120
shr eax, 1
dec edx
jne 0x48810c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x488105
mov byte [0x4f284c], 1
pop esi
pop ebx
ret

Function at 0x48813c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4f284c], 0
jne 0x488153
call fcn.004880fc
mov eax, edi
dec eax
test eax, eax
jl 0x48817c
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4f244c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x48815d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x48a9d4
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 0x48aa05
dec al
je 0x48aa41
dec al
je 0x48aa85
dec al
je 0x48aaf0
jmp 0x48ab7a
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x48ab7a
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 0x48aa15
jmp 0x48ab7a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48ab7a
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 0x48aa51
jmp 0x48ab7a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48ab7a
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 0x48aab3
xor ebp, ebp
jmp 0x48aac4
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 0x48aacd
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 0x48aa95
jmp 0x48ab7a
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48ab7a
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 0x48ab48
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.00488184
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 0x48ab04
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48efb0
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 [0x417414]
call fcn.00405598
xor eax, eax
push ebp
push 0x48f0f4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4eb710], 0
jne 0x48f003
mov ecx, dword [0x4ef7ec]
mov dl, 1
mov eax, dword [0x4082a0]
call fcn.0040d774
call fcn.00404324
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403340
mov eax, ebx
call fcn.0040525c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x48f104
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.00406664
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040526c
test eax, eax
jle 0x48f09b
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 0x48f094
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404c4c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404c18
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409170
test eax, eax
jne 0x48f094
mov ebx, 0x15
jmp 0x48f0a0
mov ebx, 0x10
jmp 0x48f0a0
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 [0x4eb710]
call fcn.0048ef08
mov eax, dword [ebp - 8]
call fcn.0048ef08
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040667c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f0fb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004049cc
lea eax, [ebp - 0x10]
mov edx, dword [0x417414]
call fcn.00405668
ret
Function at 0x4a415c
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 0x4a4164
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a4356
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4a436c
mov eax, esi
call fcn.004a1eec
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004049fc
lea ecx, [ebp - 0x10]
mov edx, 0x4a4380
mov eax, esi
call fcn.004a1eec
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004049fc
lea ecx, [ebp - 0x14]
mov edx, 0x4a4398
mov eax, esi
call fcn.004a1eec
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004049fc
lea ecx, [ebp - 0x18]
mov edx, 0x4a43b4
mov eax, esi
call fcn.004a1eec
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004049fc
lea ecx, [ebp - 0x1c]
mov edx, 0x4a43d0
mov eax, esi
call fcn.004a1eec
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004049fc
lea ecx, [ebp - 0x24]
mov edx, 0x4a43e8
mov eax, esi
call fcn.004a1eec
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004091e0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409628
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4a4400
mov eax, esi
call fcn.004a1eec
mov eax, dword [ebp - 0x28]
call fcn.004a1004
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4a4410
mov eax, esi
call fcn.004a1eec
mov eax, dword [ebp - 0x2c]
call fcn.004a1004
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4a4428
mov eax, esi
call fcn.004a1eec
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409628
inc eax
je 0x4a42f9
lea ecx, [ebp - 0x34]
mov edx, 0x4a4428
mov eax, esi
call fcn.004a1eec
mov eax, dword [ebp - 0x34]
call fcn.004095ec
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.0040b504
fstp qword [ebp - 0x3c]
wait
call fcn.0040b868
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4a4314
lea ecx, [ebp - 0x40]
mov edx, 0x4a4428
mov eax, esi
call fcn.004a1eec
mov eax, dword [ebp - 0x40]
call fcn.004a1004
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4a4438
mov eax, esi
call fcn.004a1eec
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004049fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a435d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004049cc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004049cc
ret
Function at 0x4b05f4
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 0x4b064e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b05e4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0049f9a0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0049f5a0
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 0x4b0655
lea eax, [ebp - 4]
call fcn.004049a8
ret

Function at 0x4b09d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x4b09e3
add esp, 0xfffffff0
call fcn.00403df8
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b0a5c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403aa4
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x14], 0
lea edx, [ebp - 4]
mov eax, esi
call fcn.004b0e3c
mov edx, dword [ebp - 4]
lea eax, [esi + 8]
call fcn.004049fc
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
mov edx, 0x4b0a88
call fcn.00404cd0
mov ecx, esi
mov dl, 1
mov eax, dword [0x4b0804]
call fcn.004b129c
mov dword [esi + 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0a63
lea eax, [ebp - 4]
call fcn.004049a8
ret

Function at 0x4c9288
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.00404e74
xor eax, eax
push ebp
push 0x4c92e6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004c9364
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4c92ce
lea eax, [ebp - 4]
call fcn.004c9364
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4c92d0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c92ed
lea eax, [ebp - 4]
call fcn.004049a8
ret

Function at 0x4c92f4
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.00404e74
xor eax, eax
push ebp
push 0x4c9358
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.004c9364
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a3bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c935f
lea eax, [ebp - 4]
call fcn.004049a8
ret
Function at 0x4c9950
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.00404e74
xor eax, eax
push ebp
push 0x4c9a49
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.004c902c
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.0040a00c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004ca310
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409ef0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004ca384
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 0x4c9a50
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004049cc
ret
Function at 0x4c9a58
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.00404e74
xor eax, eax
push ebp
push 0x4c9b61
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.004c902c
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 0x4c9b27
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a00c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004ca310
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409ef0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004ca384
jmp 0x4c9b39
xor edx, edx
mov eax, ebx
call fcn.004ca310
xor edx, edx
mov eax, ebx
call fcn.004ca384
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 0x4c9b68
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004049cc
ret

Function at 0x4d02f8
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.004d052c
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.004d052c
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4d036c
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 0x4d0391
inc esi
mov eax, edi
call fcn.004d0350
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004d02f8
inc ebx
dec esi
jne 0x4d037b
pop edi
pop esi
pop ebx
ret
Function at 0x4d0420
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.00404e74
xor eax, eax
push ebp
push 0x4d0495
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004d0398
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004d0350
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004d02f8
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4d0460
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d049c
lea eax, [ebp - 4]
call fcn.004049a8
ret