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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jl 0x461c08
cmp dword [ebp + 0xc], 8
jg 0x461c08
mov byte [ebp - 5], 1
jmp 0x461c0c
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.0045f710
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x461c55
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.004677c0
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4bf62a]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4bf628]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4bf62c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4bf62e]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x461ce2
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x461cf7
cmp dword [ebp + 0xc], 8
jl 0x461cf7
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 0x461d5d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x461d79
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x461df1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x461da1
mov edx, dword [ebp + 8]
push edx
call fcn.00462180
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 4], 0
jmp 0x461dc0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 2
jae 0x461df1
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 0x461db7
mov esp, ebp
pop ebp
ret
Function at 0x463b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x463b80
xor eax, eax
jmp 0x463d1d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x463cde
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 + 0x4bf970]
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 + 0x4bf970]
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 + 0x4bf970]
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 + 0x4bf970]
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 + 0x4bf970]
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 + 0x4bf970]
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 + 0x4bf970]
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 + 0x4bf970]
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 0x463b89
cmp dword [ebp + 0x10], 0
je 0x463d17
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 + 0x4bf970]
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 0x463ce4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x464570
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 0x4646ba
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 0x464687
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 0x4645bd
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4645c9
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 0x4645f6
mov eax, 0x300
jmp 0x4646f4
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 0x464638
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
mov eax, 0x300
jmp 0x4646f4
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.0046ab00
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.0046ab00
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 0x4646f4
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
je 0x4646e8
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 0x4646f4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x464d00
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 0x464da7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x6c]
cmp eax, dword [edx + 0x68]
jb 0x464d2b
xor eax, eax
jmp 0x464e17
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 0x464d48
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.0046ab00
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.00463b70
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 4]
jmp 0x464e17
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x5c], 0
je 0x464e0b
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 0x464dd8
xor eax, eax
jmp 0x464e17
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.00463b70
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0xc]
jmp 0x464e17
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4660d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x4cd724]
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.004677c0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x46611e
push 4
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00465e70
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x468]
push edx
call fcn.0046a10d
add esp, 0xc
push 0x4c00d4
lea eax, [ebp - 0x468]
push eax
call fcn.0046eebe
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.0046eebe
add esp, 8
push 0x4c00d8
lea eax, [ebp - 0x468]
push eax
call fcn.0046eebe
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 0x46619b
xor eax, eax
jmp 0x466351
mov byte [ebp - 0x259], 1
movzx eax, byte [ebp - 0x259]
test eax, eax
je 0x46633f
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x466315
push 0x4c00e0
lea eax, [ebp - 0x22c]
push eax
call fcn.0046d324
add esp, 8
test eax, eax
je 0x4661fd
push 0x4c00e4
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0046d324
add esp, 8
test eax, eax
jne 0x4661ff
jmp 0x4661a2
mov edx, dword [ebp - 0x258]
and edx, 0x10
je 0x466291
xor eax, eax
mov word [ebp - 0x678], ax
push 0x206
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.004677c0
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x678]
push eax
call fcn.0046eebe
add esp, 8
push 0x4c00ec
lea ecx, [ebp - 0x678]
push ecx
call fcn.0046eebe
add esp, 8
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x678]
push eax
call fcn.0046eebe
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.004660d0
add esp, 0xc
test eax, eax
jne 0x46628c
xor eax, eax
jmp 0x466351
jmp 0x466313
xor ecx, ecx
mov word [ebp - 0x880], cx
push 0x206
push 0
lea edx, [ebp - 0x87e]
push edx
call fcn.004677c0
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0046eeec
add esp, 8
push 0x4c00f0
lea edx, [ebp - 0x880]
push edx
call fcn.0046eebe
add esp, 8
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0046eebe
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.00465e70
add esp, 0x14
test eax, eax
je 0x466313
xor eax, eax
jmp 0x466351
jmp 0x46633a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x466329
mov byte [ebp - 0x259], 0
jmp 0x46633a
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x466351
jmp 0x4661a2
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.004677af
mov esp, ebp
pop ebp
ret
Function at 0x4677af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cd724]
jne 0x4677b9
repz ret
jmp fcn.00472064

Function at 0x47e1d2
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.00472381
and dword [ebp - 4], 0
cmp dword [0x4e9bd8], 0
mov ebx, eax
jne 0x47e283
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47e334
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47e334
push eax
call fcn.0047230f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4e9bd8], eax
call esi
push eax
call fcn.0047230f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e9bdc], eax
call esi
push eax
call fcn.0047230f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e9be0], eax
call esi
push eax
call fcn.0047230f
pop ecx
mov dword [0x4e9be8], eax
test eax, eax
je 0x47e283
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047230f
pop ecx
mov dword [0x4e9be4], eax
mov eax, dword [0x4e9be4]
cmp eax, ebx
je 0x47e2db
cmp dword [0x4e9be8], ebx
je 0x47e2db
push eax
call fcn.0047238a
push dword [0x4e9be8]
mov esi, eax
call fcn.0047238a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47e2db
test edi, edi
je 0x47e2db
call esi
test eax, eax
je 0x47e2d2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47e2d2
test byte [ebp - 0xc], 1
jne 0x47e2db
or dword [ebp + 0x10], 0x200000
jmp 0x47e314
mov eax, dword [0x4e9bdc]
cmp eax, ebx
je 0x47e314
push eax
call fcn.0047238a
pop ecx
test eax, eax
je 0x47e314
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47e314
mov eax, dword [0x4e9be0]
cmp eax, ebx
je 0x47e314
push eax
call fcn.0047238a
pop ecx
test eax, eax
je 0x47e314
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e9bd8]
call fcn.0047238a
pop ecx
test eax, eax
je 0x47e334
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47e336
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x483c27
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 0x483c68
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 0x483c41
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x483c86
dec esi
je 0x483c7d
dec esi
jne 0x483c8b
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 0x487ece
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4cd724]
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.004677c0
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.004677af
add ebp, 0x98
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x1f8c]
mov eax, 0x200c
call fcn.00467dc0
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp + 0x1f88], eax
cmp dword [0x4eb764], 1
mov eax, dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], eax
jne 0x48841e
push esi
xor esi, esi
cmp word [0x4ead50], si
je 0x48840c
push edi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.004677c0
push str.SerialNumber.txt
push 0x104
mov edi, 0x4ead50
push edi
mov dword [ebp - 0x80], esi
call fcn.00467c81
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 0x48840b
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.0048a997
add esp, 0xc
pop esi
push dword [ebp - 0x7c]
push 0x400
push 0x4eaf60
call fcn.0046a10d
mov ecx, dword [ebp + 0x1f88]
xor ecx, ebp
add esp, 0xc
mov dword [0x4eaf58], ebx
call fcn.004677af
add ebp, 0x1f8c
leave
ret
Function at 0x48953e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4cd724]
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.00487df5
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 0x48961a
cmp dword [ebp - 0x74], edi
jne 0x4895c2
xor eax, eax
jmp 0x4895e2
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d420
mov eax, esp
push esi
push dword [ebp - 0x74]
push eax
call fcn.00487ad8
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.0048830d
cmp esi, edi
jne 0x48961a
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x48961a
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.004677af
add ebp, 0x1e8
leave
ret
Function at 0x4899a8
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x2a4
mov eax, dword [0x4cd724]
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.0048833a
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.00487d35
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 0x489b50
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.00487c24
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 0x489b47
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 0x489a95
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c3b34
push dword [ebp - 0x74]
call esi
jmp 0x489aa3
push 0x4c3b34
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 0x489ac8
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c3b38
push dword [ebp - 0x74]
call esi
jmp 0x489ad6
push 0x4c3b38
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 0x489afb
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c3b30
push dword [ebp - 0x74]
call esi
jmp 0x489b09
push 0x4c3b30
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 0x489b2e
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push str.PCVL
push dword [ebp - 0x74]
call esi
jmp 0x489b3c
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 0x4c3b40
mov ebx, esi
call fcn.0048833a
pop ecx
mov ecx, dword [ebp + 0x220]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004677af
add ebp, 0x224
leave
ret 0x20