joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4652a0
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 0x465347
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x6c]
cmp eax, dword [edx + 0x68]
jb 0x4652cb
xor eax, eax
jmp 0x4653b7
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 0x4652e8
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.0046b0a0
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.00464110
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 4]
jmp 0x4653b7
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x5c], 0
je 0x4653ab
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 0x465378
xor eax, eax
jmp 0x4653b7
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.00464110
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0xc]
jmp 0x4653b7
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x466670
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.00467d60
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4666be
push 4
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00466410
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x468]
push edx
call fcn.0046a6ad
add esp, 0xc
push 0x4c1324
lea eax, [ebp - 0x468]
push eax
call fcn.0046f45e
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.0046f45e
add esp, 8
push 0x4c1328
lea eax, [ebp - 0x468]
push eax
call fcn.0046f45e
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 0x46673b
xor eax, eax
jmp 0x4668f1
mov byte [ebp - 0x259], 1
movzx eax, byte [ebp - 0x259]
test eax, eax
je 0x4668df
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4668b5
push 0x4c1330
lea eax, [ebp - 0x22c]
push eax
call fcn.0046d8c4
add esp, 8
test eax, eax
je 0x46679d
push 0x4c1334
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0046d8c4
add esp, 8
test eax, eax
jne 0x46679f
jmp 0x466742
mov edx, dword [ebp - 0x258]
and edx, 0x10
je 0x466831
xor eax, eax
mov word [ebp - 0x678], ax
push 0x206
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.00467d60
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x678]
push eax
call fcn.0046f45e
add esp, 8
push 0x4c133c
lea ecx, [ebp - 0x678]
push ecx
call fcn.0046f45e
add esp, 8
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x678]
push eax
call fcn.0046f45e
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.00466670
add esp, 0xc
test eax, eax
jne 0x46682c
xor eax, eax
jmp 0x4668f1
jmp 0x4668b3
xor ecx, ecx
mov word [ebp - 0x880], cx
push 0x206
push 0
lea edx, [ebp - 0x87e]
push edx
call fcn.00467d60
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0046f48c
add esp, 8
push 0x4c1340
lea edx, [ebp - 0x880]
push edx
call fcn.0046f45e
add esp, 8
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0046f45e
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.00466410
add esp, 0x14
test eax, eax
je 0x4668b3
xor eax, eax
jmp 0x4668f1
jmp 0x4668da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4668c9
mov byte [ebp - 0x259], 0
jmp 0x4668da
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4668f1
jmp 0x466742
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.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x467d4f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ce724]
jne 0x467d59
repz ret
jmp fcn.00472605

Function at 0x47e772
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.00472922
and dword [ebp - 4], 0
cmp dword [0x4eb000], 0
mov ebx, eax
jne 0x47e823
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47e8d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47e8d4
push eax
call fcn.004728b0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4eb000], eax
call esi
push eax
call fcn.004728b0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4eb004], eax
call esi
push eax
call fcn.004728b0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4eb008], eax
call esi
push eax
call fcn.004728b0
pop ecx
mov dword [0x4eb010], eax
test eax, eax
je 0x47e823
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004728b0
pop ecx
mov dword [0x4eb00c], eax
mov eax, dword [0x4eb00c]
cmp eax, ebx
je 0x47e87b
cmp dword [0x4eb010], ebx
je 0x47e87b
push eax
call fcn.0047292b
push dword [0x4eb010]
mov esi, eax
call fcn.0047292b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47e87b
test edi, edi
je 0x47e87b
call esi
test eax, eax
je 0x47e872
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47e872
test byte [ebp - 0xc], 1
jne 0x47e87b
or dword [ebp + 0x10], 0x200000
jmp 0x47e8b4
mov eax, dword [0x4eb004]
cmp eax, ebx
je 0x47e8b4
push eax
call fcn.0047292b
pop ecx
test eax, eax
je 0x47e8b4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47e8b4
mov eax, dword [0x4eb008]
cmp eax, ebx
je 0x47e8b4
push eax
call fcn.0047292b
pop ecx
test eax, eax
je 0x47e8b4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4eb000]
call fcn.0047292b
pop ecx
test eax, eax
je 0x47e8d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47e8d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4841c7
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 0x484208
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 0x4841e1
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x484226
dec esi
je 0x48421d
dec esi
jne 0x48422b
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 0x48846e
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.00467d60
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.00467d4f
add ebp, 0x98
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x1f8c]
mov eax, 0x200c
call fcn.00468360
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x1f88], eax
cmp dword [0x4ecb8c], 1
mov eax, dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], eax
jne 0x4889be
push esi
xor esi, esi
cmp word [0x4ec178], si
je 0x4889ac
push edi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00467d60
push str.SerialNumber.txt
push 0x104
mov edi, 0x4ec178
push edi
mov dword [ebp - 0x80], esi
call fcn.00468221
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 0x4889ab
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.0048af37
add esp, 0xc
pop esi
push dword [ebp - 0x7c]
push 0x400
push 0x4ec388
call fcn.0046a6ad
mov ecx, dword [ebp + 0x1f88]
xor ecx, ebp
add esp, 0xc
mov dword [0x4ec380], ebx
call fcn.00467d4f
add ebp, 0x1f8c
leave
ret
Function at 0x489ade
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.00488395
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 0x489bba
cmp dword [ebp - 0x74], edi
jne 0x489b62
xor eax, eax
jmp 0x489b82
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push esi
push dword [ebp - 0x74]
push eax
call fcn.00488078
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.004888ad
cmp esi, edi
jne 0x489bba
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x489bba
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.00467d4f
add ebp, 0x1e8
leave
ret
Function at 0x489f48
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.004888da
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.004882d5
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 0x48a0f0
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.004881c4
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 0x48a0e7
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 0x48a035
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c4d84
push dword [ebp - 0x74]
call esi
jmp 0x48a043
push 0x4c4d84
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 0x48a068
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c4d88
push dword [ebp - 0x74]
call esi
jmp 0x48a076
push 0x4c4d88
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 0x48a09b
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4c4d80
push dword [ebp - 0x74]
call esi
jmp 0x48a0a9
push 0x4c4d80
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 0x48a0ce
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push str.PCVL
push dword [ebp - 0x74]
call esi
jmp 0x48a0dc
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 0x4c4d90
mov ebx, esi
call fcn.004888da
pop ecx
mov ecx, dword [ebp + 0x220]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467d4f
add ebp, 0x224
leave
ret 0x20
Function at 0x48a119
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x268], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x274]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x284]
push str._SerialNumber_GetCustomData
xor ebx, ebx
mov dword [ebp - 0x2c], esi
call fcn.004888da
pop ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x48a174
push str.SerialNumber_GetCustomData__ERROR_ACCESS_DENIED_lpdwData_
push 5
pop ebx
jmp 0x48a271
or dword [esi], 0xffffffff
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
call fcn.004882d5
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
mov eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push closesocket
call ebx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x48a269
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1e8]
movsd dword es:[edi], dword [esi]
call fcn.004881c4
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x34]
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x48a25f
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x3c], edi
call fcn.00467d60
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4c4e78
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x48a258
cmp dword [ebp - 0x80], edi
ja 0x48a258
mov eax, dword [ebp + 0x288]
dec eax
je 0x48a24a
sub eax, 6
je 0x48a23f
mov dword [ebp - 0x30], 0xa0
jmp 0x48a258
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x60]
jmp 0x48a253
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push dword [ebp - 0x38]
call ebx
jmp 0x48a264
mov eax, dword [ebp - 0x2c]
mov dword [eax], esi
push dword [ebp - 0x34]
call ebx
mov ebx, dword [ebp - 0x30]
push str._SerialNumber_GetCustomData_dwReturnCode
call fcn.004888da
pop ecx
mov ecx, dword [ebp + 0x268]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00467d4f
add ebp, 0x26c
leave
ret 0x18
Function at 0x48af37
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3fe8]
mov eax, 0x4068
call fcn.00468360
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x3fe4], eax
push ebx
push esi
push edi
lea eax, [ebp + 0x3ff4]
push eax
push dword [ebp + 0x3ff0]
mov esi, 0x1000
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0046d320
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x6e]
push 0xa
pop ecx
cdq
idiv ecx
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
push str._02.2u:_02.2u:_02.2u__02.2u
lea eax, [ebp + 0x3fa4]
push 0x20
push eax
call fcn.00468336
add esp, 0x1c
lea eax, [ebp - 0x5c]
xor ebx, ebx
push eax
lea eax, [ebp + 0x3fa4]
cmp word [0x4ecda8], bx
je 0x48afe4
push 0x4ecda8
push eax
push str._s__s__s
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.00468336
add esp, 0x18
jmp 0x48affa
push eax
push 0x4c3e08
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.00468336
add esp, 0x14
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x60], eax
mov eax, dword [0x4ecda4]
cmp eax, ebx
je 0x48b01c
lea ecx, [ebp + 0x1fa4]
push ecx
push ebx
push 0x180
push eax
call edi
mov eax, dword [0x4ecda0]
cmp eax, ebx
je 0x48b049
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp + 0x1fa4]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push 0x4a
push eax
mov dword [ebp - 0x6c], 1
call edi
cmp dword [0x4ecd98], ebx
je 0x48b0bb
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push 0x4ecb90
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push ebx
push ebx
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x4c54ec
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.00468221
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1fa4]
push eax
call fcn.004684f8
pop ecx
push eax
lea eax, [ebp + 0x1fa4]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ecd9c], ebx
je 0x48b11d
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1fa4]
cmp word [0x4ecda8], bx
je 0x48b0ec
push 0x4ecda8
push 0x4c3e08
push esi
push eax
call fcn.00468336
add esp, 0x14
jmp 0x48b0fb
push 0x4c54e4
push esi
push eax
call fcn.00468336
add esp, 0x10
lea eax, [eax + eax + 2]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x1fa4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x4a
push dword [0x4ecd9c]
mov dword [ebp - 0x6c], ebx
call edi
mov ecx, dword [ebp + 0x3fe4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467d4f
add ebp, 0x3fe8
leave
ret
Function at 0x48b800
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
push esi
push ecx
push 2
push 1
push 0x40000000
push str.Info.pad
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00493240
add esp, 0x1c
cmp dword [esp + 4], 0xffffffff
mov esi, eax
je 0x48b89a
push 0x45
push 1
lea eax, [esp + 0x14]
push str._d._02.2d
push eax
call fcn.0046829e
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x60]
push str.version_s_r_n
push edx
call fcn.0046829e
add esp, 0x1c
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48b89a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xcc]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00467d4f
add esp, 0xcc
ret

Function at 0x48bc70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
mov dword [edi], 0
mov dword [ebx], 0
mov dword [esp + 0x10], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48bdab
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push str.NCnxTime
push edx
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call esi
test eax, eax
jne 0x48bd0d
lea eax, [esp + 0x18]
push eax
call fcn.0047fc9d
add esp, 4
mov dword [edi], eax
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
push str.NCnxModeExpire
push eax
mov dword [esp + 0x24], 0x10
call esi
test eax, eax
jne 0x48bd52
lea ecx, [esp + 0x18]
push ecx
call fcn.0047fc9d
add esp, 4
mov dword [ebx], eax
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push str.CnxTime
push edx
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call esi
mov esi, eax
test esi, esi
jne 0x48bd9d
lea eax, [esp + 0x18]
push eax
call fcn.0047fc9d
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00467d4f
add esp, 0x20
ret