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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jl 0x462458
cmp dword [ebp + 0xc], 8
jg 0x462458
mov byte [ebp - 5], 1
jmp 0x46245c
mov byte [ebp - 5], 0
push str.bad_pack_level
movzx eax, byte [ebp - 5]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045ff60
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x4624a5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af78], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af70], 0x10000
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af6c], 0
push 0x1fffc
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x4af70
push ecx
call fcn.00468010
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4c08fa]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4c08f8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4c08fc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4c08fe]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x462532
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x462547
cmp dword [ebp + 0xc], 8
jl 0x462547
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1af70
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0
je 0x4625ad
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x4625c9
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x462641
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x4625f1
mov edx, dword [ebp + 8]
push edx
call fcn.004629d0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 4], 0
jmp 0x462610
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 2
jae 0x462641
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1af70]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x462607
mov esp, ebp
pop ebp
ret
Function at 0x4643c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4643d0
xor eax, eax
jmp 0x46456d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x46452e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c0c40]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c0c40]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c0c40]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c0c40]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c0c40]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c0c40]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c0c40]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c0c40]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x4643d9
cmp dword [ebp + 0x10], 0
je 0x464567
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c0c40]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x464534
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x464dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0
je 0x464f0a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmp edx, dword [eax + 0x20]
jb 0x464ed7
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
shl edx, 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 0xc]
cmp edx, ecx
jbe 0x464e0d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x464e19
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x464e46
mov eax, 0x300
jmp 0x464f44
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x464e88
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
mov eax, 0x300
jmp 0x464f44
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0046b350
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0x1c]
push edx
call fcn.0046b350
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0xc]
jmp 0x464f44
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
je 0x464f38
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
jmp 0x464f44
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x465550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x64], 0
je 0x4655f7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x6c]
cmp eax, dword [edx + 0x68]
jb 0x46557b
xor eax, eax
jmp 0x465667
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x68]
sub eax, dword [edx + 0x6c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jbe 0x465598
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x64]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x6c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046b350
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x6c]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x58]
push edx
call fcn.004643c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 4]
jmp 0x465667
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x5c], 0
je 0x46565b
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x465628
xor eax, eax
jmp 0x465667
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x58]
push edx
call fcn.004643c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0xc]
jmp 0x465667
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x466920
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x468], ax
push 0x206
push 0
lea ecx, [ebp - 0x466]
push ecx
call fcn.00468010
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x46696e
push 4
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004666c0
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x468]
push edx
call fcn.0046a95d
add esp, 0xc
push 0x4c13a4
lea eax, [ebp - 0x468]
push eax
call fcn.0046f70e
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.0046f70e
add esp, 8
push 0x4c13a8
lea eax, [ebp - 0x468]
push eax
call fcn.0046f70e
add esp, 8
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0xffffffff
jne 0x4669eb
xor eax, eax
jmp 0x466ba1
mov byte [ebp - 0x259], 1
movzx eax, byte [ebp - 0x259]
test eax, eax
je 0x466b8f
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x466b65
push 0x4c13b0
lea eax, [ebp - 0x22c]
push eax
call fcn.0046db74
add esp, 8
test eax, eax
je 0x466a4d
push 0x4c13b4
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0046db74
add esp, 8
test eax, eax
jne 0x466a4f
jmp 0x4669f2
mov edx, dword [ebp - 0x258]
and edx, 0x10
je 0x466ae1
xor eax, eax
mov word [ebp - 0x678], ax
push 0x206
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.00468010
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x678]
push eax
call fcn.0046f70e
add esp, 8
push 0x4c13bc
lea ecx, [ebp - 0x678]
push ecx
call fcn.0046f70e
add esp, 8
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x678]
push eax
call fcn.0046f70e
add esp, 8
lea ecx, [ebp - 0x678]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00466920
add esp, 0xc
test eax, eax
jne 0x466adc
xor eax, eax
jmp 0x466ba1
jmp 0x466b63
xor ecx, ecx
mov word [ebp - 0x880], cx
push 0x206
push 0
lea edx, [ebp - 0x87e]
push edx
call fcn.00468010
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0046f73c
add esp, 8
push 0x4c13c0
lea edx, [ebp - 0x880]
push edx
call fcn.0046f70e
add esp, 8
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0046f70e
add esp, 8
push 2
push 0
lea edx, [ebp - 0x880]
push edx
lea eax, [ebp - 0x880]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004666c0
add esp, 0x14
test eax, eax
je 0x466b63
xor eax, eax
jmp 0x466ba1
jmp 0x466b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x466b79
mov byte [ebp - 0x259], 0
jmp 0x466b8a
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x466ba1
jmp 0x4669f2
mov eax, dword [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret
Function at 0x467fff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ce724]
jne 0x468009
repz ret
jmp fcn.004728b6

Function at 0x47ea32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00472bd3
and dword [ebp - 4], 0
cmp dword [0x4eb028], 0
mov ebx, eax
jne 0x47eae3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47eb94
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47eb94
push eax
call fcn.00472b61
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4eb028], eax
call esi
push eax
call fcn.00472b61
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4eb02c], eax
call esi
push eax
call fcn.00472b61
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4eb030], eax
call esi
push eax
call fcn.00472b61
pop ecx
mov dword [0x4eb038], eax
test eax, eax
je 0x47eae3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00472b61
pop ecx
mov dword [0x4eb034], eax
mov eax, dword [0x4eb034]
cmp eax, ebx
je 0x47eb3b
cmp dword [0x4eb038], ebx
je 0x47eb3b
push eax
call fcn.00472bdc
push dword [0x4eb038]
mov esi, eax
call fcn.00472bdc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47eb3b
test edi, edi
je 0x47eb3b
call esi
test eax, eax
je 0x47eb32
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47eb32
test byte [ebp - 0xc], 1
jne 0x47eb3b
or dword [ebp + 0x10], 0x200000
jmp 0x47eb74
mov eax, dword [0x4eb02c]
cmp eax, ebx
je 0x47eb74
push eax
call fcn.00472bdc
pop ecx
test eax, eax
je 0x47eb74
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47eb74
mov eax, dword [0x4eb030]
cmp eax, ebx
je 0x47eb74
push eax
call fcn.00472bdc
pop ecx
test eax, eax
je 0x47eb74
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4eb028]
call fcn.00472bdc
pop ecx
test eax, eax
je 0x47eb94
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47eb96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x484487
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x4844c8
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x4844a1
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x4844e6
dec esi
je 0x4844dd
dec esi
jne 0x4844eb
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x48872e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.00468010
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x94]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00467fff
add ebp, 0x98
leave
ret

Function at 0x488b9a
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f8c]
mov eax, 0x200c
call fcn.00468610
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x1f88], eax
cmp dword [0x4ecbb4], 1
mov eax, dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], eax
jne 0x488c7e
push esi
xor esi, esi
cmp word [0x4ec1a0], si
je 0x488c6c
push edi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00468010
push str.SerialNumber.txt
push 0x104
mov edi, 0x4ec1a0
push edi
mov dword [ebp - 0x80], esi
call fcn.004684d1
add esp, 0x18
push esi
push 2
push 4
push esi
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x488c6b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push str._s___X__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebx
push dword [ebp - 0x7c]
push str._s___X_
call fcn.0048b1f7
add esp, 0xc
pop esi
push dword [ebp - 0x7c]
push 0x400
push 0x4ec3b0
call fcn.0046a95d
mov ecx, dword [ebp + 0x1f88]
xor ecx, ebp
add esp, 0xc
mov dword [0x4ec3a8], ebx
call fcn.00467fff
add ebp, 0x1f8c
leave
ret
Function at 0x489d9e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x200]
lea esi, [ebp + 0x1f0]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x204]
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
movsd dword es:[edi], dword [esi]
call fcn.00488655
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
push 0x20019
xor edi, edi
push edi
mov eax, ebx
push eax
push closesocket
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x489e7a
cmp dword [ebp - 0x74], edi
jne 0x489e22
xor eax, eax
jmp 0x489e42
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dc70
mov eax, esp
push esi
push dword [ebp - 0x74]
push eax
call fcn.00488338
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.00488b6d
cmp esi, edi
jne 0x489e7a
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x489e7a
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x2c], ecx
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1e4]
xor ecx, ebp
call fcn.00467fff
add ebp, 0x1e8
leave
ret
Function at 0x48a208
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x2a4
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x22c]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str._SerialNumber_SetMasterVersion
xor ebx, ebx
movsd dword es:[edi], dword [esi]
call fcn.00488b9a
sub esp, 0xc
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
call fcn.00488595
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x48a3b0
sub esp, 0x10
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1a0]
movsd dword es:[edi], dword [esi]
call fcn.00488484
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x48a3a7
movzx eax, byte [ebp + 0x23c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x78], eax
pop edi
cmp byte [ebp + 0x23c], bl
je 0x48a2f5
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c4e04
push dword [ebp - 0x74]
call esi
jmp 0x48a303
push 0x4c4e04
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x240]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x240], bl
je 0x48a328
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c4e08
push dword [ebp - 0x74]
call esi
jmp 0x48a336
push 0x4c4e08
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x244]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x244], bl
je 0x48a35b
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c4e00
push dword [ebp - 0x74]
call esi
jmp 0x48a369
push 0x4c4e00
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x248]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x248], bl
je 0x48a38e
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push str.PCVL
push dword [ebp - 0x74]
call esi
jmp 0x48a39c
push str.PCVL
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4c4e10
mov ebx, esi
call fcn.00488b9a
pop ecx
mov ecx, dword [ebp + 0x220]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467fff
add ebp, 0x224
leave
ret 0x20