joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500354
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x500501
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x5004e2
mov dl, 1
mov eax, dword [0x42ff70]
call fcn.0043c560
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00407580
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5004d1
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004e1b08
test al, al
je 0x5004c4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x500510
lea eax, [ebp - 0x394]
call fcn.0041652c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5004c4
xor eax, eax
push ebp
push 0x5004bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x500580
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5004a6
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407778
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x5004a6
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5004c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5003c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0043c49c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500508
lea eax, [ebp - 0x3a0]
call fcn.00407570
ret

Function at 0x501060
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x6482e8]
cmp byte [eax + 0xad], 0
jne 0x5010d2
cmp dword [0x648300], 0
jne 0x501092
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x63c54c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x648300], eax
cmp dword [0x6482fc], 0
jne 0x5010ad
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x6482fc], eax
cmp dword [0x648304], 0
jne 0x5010d2
push esp
push 0
push 0
mov eax, dword [0x63c548]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x648304], eax
pop edx
ret
Function at 0x5013f8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x50140f
add esp, 0xfffffff0
call fcn.004059d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00444fa8
mov eax, dword [0x6423e8]
cmp byte [eax], 0
jne 0x50143c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x642954]
cmp word [eax + 2], 0
jne 0x501456
mov eax, dword [0x642954]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005034f0
mov eax, dword [0x642b3c]
cmp word [eax + 2], 0
jne 0x501470
mov eax, dword [0x642b3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00503700
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44f9cc]
call fcn.00455f08
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x503cb0
mov dl, 1
mov eax, dword [0x42d870]
call fcn.00405474
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42d870]
call fcn.00405474
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4540cc]
call fcn.0045f780
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x501650
mov eax, dword [0x642730]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045fc14
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x503f98
mov dl, 1
mov eax, dword [0x42d870]
call fcn.00405474
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x642730]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041630c
test eax, eax
je 0x501581
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041609c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004162f0
test eax, eax
je 0x501599
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407778
push ebx
push 0x502ec0
call fcn.004f6f24
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x6423e8]
cmp byte [eax], 0
jne 0x5015ea
mov eax, ebx
call fcn.005017c4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.005041c4
mov eax, ebx
call fcn.00504df8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x501647
call fcn.00405a30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x501a98
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x501b3a
cmp dword [ebx + 0x94], 0
jne 0x501b34
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5019e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x501b34
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_GetWindowLongW
test al, 8
je 0x501afa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x501b34
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.00438c94
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x501b09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x501d58
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x6482e8]
cmp dword [eax + 0x170], 0
je 0x501ebd
test bl, bl
jne 0x501e0b
cmp dword [esi + 0x9c], 0
jne 0x501e00
mov eax, esi
call fcn.00504c48
push eax
push 0x501c64
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x501dd1
mov eax, dword [0x6482e8]
cmp byte [eax + 0xd3], 0
je 0x501dd1
mov eax, dword [esi + 0xd8]
call fcn.00409040
mov edi, eax
cmp edi, 0
jl 0x501dd1
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x501dba
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x501e00
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00438c94
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x501de0
inc dword [esi + 0x9c]
jmp 0x501ebd
cmp dword [esi + 0x9c], 0
jle 0x501ebd
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x501ebd
cmp dword [esi + 0x44], 0
je 0x501e68
mov eax, dword [0x6482e8]
cmp byte [eax + 0xd3], 0
je 0x501e68
mov eax, dword [esi + 0xd8]
call fcn.00409040
mov edi, eax
cmp edi, 0
jl 0x501e68
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x501e51
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x501e97
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00438c94
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x501e77
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4f4dfc]
call fcn.00409200
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x502b0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x502b77
cmp byte [ebx + 0xd3], 0
jne 0x502b77
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004076bc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x502b64
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x502b84
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00407580
jmp 0x502b84
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00407580
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x5043ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x50441a
mov eax, esi
call fcn.004dba84
test al, al
je 0x50441a
mov eax, dword [ebx + 0x84]
call fcn.004db6d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50441a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x50440e
push 0
mov eax, dword [ebx + 0x84]
call fcn.004db6d8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004d2678
jmp 0x50441a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.005041e4
pop esi
pop ebx
ret
Function at 0x5089e4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x508a12
mov eax, ebx
call fcn.00509498
cmp dword [ebx + 0x40], 0
je 0x508a0b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x508a83
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x508a75
cmp dword [ebx + 8], 0
je 0x508a34
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 0x508a46
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x508a75
cmp dword [ebx + 8], 0
je 0x508a27
cmp eax, 3
je 0x508a59
dec eax
jne 0x508a27
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 0x508a27
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x508a27
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x508aa1
cmp dword [ebx + 0x14], 0xcc
je 0x508aa1
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.00508aac
pop ebx
ret
Function at 0x51f174
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x63cf88]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x51f19f
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x522c44
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
xor ecx, ecx
mov edx, 0x40
call fcn.00404cb4
ret

Function at 0x5236b8
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
movzx ebx, bl
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
movzx edx, dl
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax*8 + 0x63e1c4]
movzx eax, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x5236f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x523708
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x523701
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00404cb4
xor edx, edx
mov eax, 0x63e3c4
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x52376f
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x523726
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x5239b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x5239c9
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x5239c2
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x5239db
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x5239d4
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.005235a8
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x5239f5
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.005236b8
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x523a7d
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x523a9b
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.00523638
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x523ac5
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x523adc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x523af5
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x523aee
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x523b09
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.005234a8
test bl, bl
jne 0x523be3
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x648344
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x523b41
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x523b56
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.005239b0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x523b89
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x523b36
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x523bad
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x523bbf
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x523bd4
jmp 0x523ca4
cmp bl, 1
jne 0x523ca4
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x64839e
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x523c03
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x523c18
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.005239b0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x523c4b
sub ebx, 6
inc dword [ebp - 8]
jne 0x523bf8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x523c73
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x523c85
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x523c9a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00523528
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x5248e8
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407580
push 0x104
lea eax, [esp + 4]
push eax
mov eax, esi
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_QueryDosDeviceW
test eax, eax
jle 0x524922
mov edx, esp
mov ecx, ebx
xchg ecx, eax
call fcn.004076bc
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x524c30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
xor eax, eax
push ebp
push 0x524cf8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041407c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004075d4
mov eax, dword [ebp - 4]
movzx esi, word [eax]
mov eax, dword [ebp - 4]
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_GetDriveTypeW
mov ebx, eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov word [ebp - 8], ax
xor eax, eax
push ebp
push 0x524cd3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 2
jne 0x524cbb
mov eax, esi
sub al, 0x40
call fcn.00415f4c
cmp edx, 0xffffffff
jne 0x524cbb
cmp eax, 0xffffffff
jne 0x524cbb
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524cda
movzx eax, word [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret

Function at 0x524d0c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x524db3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004076fc
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0x524dd0
call fcn.00407a4c
mov eax, dword [ebp - 4]
call fcn.0040760c
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetDriveTypeW
cmp eax, 3
je 0x524d67
push esi
call sub.KERNEL32.DLL_GetDriveTypeW
cmp eax, 2
jne 0x524d88
mov eax, dword [ebp - 4]
call fcn.00524c30
test al, al
je 0x524d88
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004076fc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040798c
inc ebx
cmp ebx, 0x5b
jne 0x524d2d
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00407580
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524dba
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407578
ret
Function at 0x52614c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40dba0]
call fcn.00408300
xor eax, eax
push ebp
push 0x526296
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x63e458], 0
jne 0x5261a0
mov ecx, dword [0x64242c]
mov dl, 1
mov eax, dword [0x40f5a4]
call fcn.0041a80c
call fcn.00405f7c
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00404cb4
mov eax, ebx
call fcn.00407290
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x5262a4
lea edi, [ebp - 0x34]
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 esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040a6ac
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x5261e7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x52623c
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_GetComputerNameW
test eax, eax
je 0x526235
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.004077e0
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00407778
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00414630
test eax, eax
jne 0x526235
mov ebx, 0x15
jmp 0x526241
mov ebx, 0x10
jmp 0x526241
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x63e458]
call fcn.00525f5c
mov eax, dword [ebp - 4]
call fcn.00525f5c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040a6c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52629d
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00407578
lea eax, [ebp - 0xc]
mov edx, dword [0x40dba0]
call fcn.004083d8
ret