joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b02ac
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004af958
xor eax, eax
push ebp
push 0x4b041f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4b0409
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4b02f8
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4b0302
call fcn.00404dc0
jmp 0x4b0426
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004202a0
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4b03fe
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b03b1
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4b039e
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004045d8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004b0264
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x4b0434]
cmp dl, byte [eax + 0x28]
je 0x4b0405
call fcn.0040f520
jmp 0x4b0405
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004202c0
jmp 0x4b0405
cmp edi, ebx
jge 0x4b03cd
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004202c0
jmp 0x4b0302
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004202a0
cmp edx, dword [esp + 4]
jne 0x4b03ed
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4b0302
push ebp
call fcn.004b0264
pop ecx
jmp 0x4b0405
push ebp
call fcn.004b0264
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0426
mov eax, dword [ebp - 4]
call fcn.004af964
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0438
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b055a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004af958
xor eax, eax
push ebp
push 0x4b053d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4b0488
call fcn.00404dc0
jmp 0x4b0544
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4b0527
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4b0527
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004045d8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4b0527
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ed08
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4b0574
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x6342c8]
mov dl, 1
mov eax, dword [0x4ae444]
call fcn.0040f644
call fcn.00404d14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0544
mov eax, dword [ebp - 4]
call fcn.004af964
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0561
lea eax, [ebp - 0x28]
call fcn.004053e0
ret
Function at 0x4b05c0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b070a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004af958
xor eax, eax
push ebp
push 0x4b06ed
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4b0625
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4b0625
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4b06d7
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4b0638
call fcn.00404dc0
jmp 0x4b06f4
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4b06d7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4b06d7
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004045d8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4b06d7
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ed08
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4b0724
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x6342c8]
mov dl, 1
mov eax, dword [0x4ae444]
call fcn.0040f644
call fcn.00404d14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b06f4
mov eax, dword [ebp - 4]
call fcn.004af964
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0711
lea eax, [ebp - 0x28]
call fcn.004053e0
ret
Function at 0x4b611c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b614a
mov eax, ebx
call fcn.004b6bd0
cmp dword [ebx + 0x40], 0
je 0x4b6143
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b61bb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b61ad
cmp dword [ebx + 8], 0
je 0x4b616c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b617e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b61ad
cmp dword [ebx + 8], 0
je 0x4b615f
cmp eax, 3
je 0x4b6191
dec eax
jne 0x4b615f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b615f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b615f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b61d9
cmp dword [ebx + 0x14], 0xcc
je 0x4b61d9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b61e4
pop ebx
ret

Function at 0x4eba0c
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 0x4eba66
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004eb9fc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004e9654
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004e916c
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 0x4eba6d
lea eax, [ebp - 4]
call fcn.004053e0
ret
Function at 0x4f4bdc
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]
jmp 0x4f4c09
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4f4c88
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004f3c90
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 0x4f4c56
mov cx, word [esp]
sub cx, si
jmp 0x4f4c58
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4f4c3f
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 0x4f4c7e
mov cx, word [esp]
sub cx, si
jmp 0x4f4c80
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4f4c67
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4f4ce5
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004f48bc
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4f4cd0
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 0x4f4ce5
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4f4be6
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4fadd8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x63eb20
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4fadfa
shr eax, 1
xor eax, 0xedb88320
jmp 0x4fadfc
shr eax, 1
dec edx
jne 0x4fade8
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4fade1
mov byte [0x63ef20], 1
pop esi
pop ebx
ret

Function at 0x4fae18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x63ef20], 0
jne 0x4fae2f
call fcn.004fadd8
mov eax, edi
dec eax
test eax, eax
jl 0x4fae57
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x63eb20]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4fae39
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4fd2ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x45d]
movzx ecx, dl
cmp ecx, 6
ja case.0x4fd346.0
jmp dword [ecx*4 + 0x4fd2df]
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x4fd311
sub dl, 8
je 0x4fd320
jmp case.0x4fd346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd018
jmp case.0x4fd346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd070
jmp case.0x4fd346.0
movzx ecx, byte [eax + 0x45c]
cmp ecx, 0x10
ja case.0x4fd346.0
movzx ecx, byte [ecx + 0x4fd34d]
jmp dword [ecx*4 + 0x4fd35e]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd0c8
jmp case.0x4fd346.0
cmp dl, 3
jne 0x4fd38b
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd11c
jmp case.0x4fd346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd0d8
jmp case.0x4fd346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd160
jmp case.0x4fd346.0
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x4fd3b6
sub dl, 8
je 0x4fd3c2
jmp case.0x4fd346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd17c
jmp case.0x4fd346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd1e8
jmp case.0x4fd346.0
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x4fd3e1
sub dl, 8
je 0x4fd3ed
jmp case.0x4fd346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd258
jmp case.0x4fd346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4fd280
mov esi, dword [eax + 0x448]
mov edx, dword [ebx + 0x1c]
dec edx
imul esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0xc], esi
mov eax, dword [eax + 0x450]
mov dword [ebp - 8], eax
mov esi, edx
test esi, esi
jb 0x4fd47d
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004fc60c
test eax, eax
je 0x4fd47d
mov eax, ebx
call fcn.004fd488
mov eax, dword [ebp - 8]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x448]
sub dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x4fd41d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4fd488
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4fd4b9
dec al
je 0x4fd4f4
dec al
je 0x4fd539
dec al
je 0x4fd5a2
jmp 0x4fd62c
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4fd62c
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, 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 0x4fd4c9
jmp 0x4fd62c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fd62c
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4fd504
jmp 0x4fd62c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fd62c
mov esi, 1
movzx eax, 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 0x4fd568
xor ebp, ebp
jmp 0x4fd578
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4fd581
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4fd549
jmp 0x4fd62c
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fd62c
mov esi, 1
movzx eax, 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 0x4fd5fb
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, 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
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004fae60
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4fd5b6
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5024e8
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 0x502659
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 0x502634
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.004055c8
lea eax, [ebp - 0x118]
mov edx, 0x502670
call fcn.004056ac
mov eax, dword [ebp - 0x118]
call fcn.00405870
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x5025a6
lea eax, [ebp - 0x111]
call fcn.0040b750
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004054d0
jmp 0x5025ad
mov eax, esi
call fcn.004053e0
cmp bl, 0x61
jae 0x5025ce
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0041044c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405434
jmp 0x5025e8
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.004103b8
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405434
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, 0x50267c
call fcn.0040c244
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50263b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x507cd0
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.00405860
xor eax, eax
push ebp
push 0x507d2e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00507dac
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x507d16
lea eax, [ebp - 4]
call fcn.00507dac
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x507d18
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507d35
lea eax, [ebp - 4]
call fcn.004053e0
ret

Function at 0x507d3c
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.00405860
xor eax, eax
push ebp
push 0x507da0
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.00507dac
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b9b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507da7
lea eax, [ebp - 4]
call fcn.004053e0
ret
Function at 0x508360
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.00405860
xor eax, eax
push ebp
push 0x508459
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 + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00507a60
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.0040b574
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00508d30
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b434
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00508da8
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 0x508460
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405404
ret
Function at 0x508468
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.00405860
xor eax, eax
push ebp
push 0x508571
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 + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00507a60
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 0x508537
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b574
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00508d30
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b434
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00508da8
jmp 0x508549
xor edx, edx
mov eax, ebx
call fcn.00508d30
xor edx, edx
mov eax, ebx
call fcn.00508da8
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 0x508578
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405404
ret

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

Function at 0x50eeec
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 0x50ef12
inc esi
mov eax, edi
call fcn.0050eed0
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.0050ee78
inc ebx
dec esi
jne 0x50eefb
pop edi
pop esi
pop ebx
ret
Function at 0x50efa8
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.00405860
xor eax, eax
push ebp
push 0x50f01e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0050ef18
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0050eed0
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0050ee78
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x50efe8
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f025
lea eax, [ebp - 4]
call fcn.004053e0
ret