joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4454e0
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 0x44562a
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 0x4455f7
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 0x44552d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x445539
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 0x445566
mov eax, 0x300
jmp 0x445664
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 0x4455a8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
mov eax, 0x300
jmp 0x445664
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.0044a6b0
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.0044a6b0
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 0x445664
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
je 0x445658
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 0x445664
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x445c70
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 0x445d17
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x6c]
cmp eax, dword [edx + 0x68]
jb 0x445c9b
xor eax, eax
jmp 0x445d87
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 0x445cb8
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.0044a6b0
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.00444ae0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 4]
jmp 0x445d87
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x5c], 0
je 0x445d7b
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 0x445d48
xor eax, eax
jmp 0x445d87
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.00444ae0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0xc]
jmp 0x445d87
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x447040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x4b1120]
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.00447660
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x44708e
push 4
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00446de0
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x468]
push edx
call fcn.0044a00d
add esp, 0xc
push 0x49b8ac
lea eax, [ebp - 0x468]
push eax
call fcn.0044dba1
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.0044dba1
add esp, 8
push 0x49b8b0
lea eax, [ebp - 0x468]
push eax
call fcn.0044dba1
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 0x44710b
xor eax, eax
jmp 0x4472c1
mov byte [ebp - 0x259], 1
movzx eax, byte [ebp - 0x259]
test eax, eax
je 0x4472af
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x447285
push 0x49b8b8
lea eax, [ebp - 0x22c]
push eax
call fcn.0044cbf2
add esp, 8
test eax, eax
je 0x44716d
push 0x49b8bc
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0044cbf2
add esp, 8
test eax, eax
jne 0x44716f
jmp 0x447112
mov edx, dword [ebp - 0x258]
and edx, 0x10
je 0x447201
xor eax, eax
mov word [ebp - 0x678], ax
push 0x206
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.00447660
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x678]
push eax
call fcn.0044dba1
add esp, 8
push 0x49b8c4
lea ecx, [ebp - 0x678]
push ecx
call fcn.0044dba1
add esp, 8
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x678]
push eax
call fcn.0044dba1
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.00447040
add esp, 0xc
test eax, eax
jne 0x4471fc
xor eax, eax
jmp 0x4472c1
jmp 0x447283
xor ecx, ecx
mov word [ebp - 0x880], cx
push 0x206
push 0
lea edx, [ebp - 0x87e]
push edx
call fcn.00447660
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0044dbcf
add esp, 8
push 0x49b8c8
lea edx, [ebp - 0x880]
push edx
call fcn.0044dba1
add esp, 8
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0044dba1
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.00446de0
add esp, 0x14
test eax, eax
je 0x447283
xor eax, eax
jmp 0x4472c1
jmp 0x4472aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x447299
mov byte [ebp - 0x259], 0
jmp 0x4472aa
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4472c1
jmp 0x447112
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.00447645
mov esp, ebp
pop ebp
ret
Function at 0x447645
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b1120]
jne 0x44764f
repz ret
jmp fcn.0044e36a

Function at 0x458fdc
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.0044f340
and dword [ebp - 4], 0
cmp dword [0x4cbf24], 0
mov ebx, eax
jne 0x45908d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45913e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45913e
push eax
call fcn.0044f2ce
mov dword [esp], 0x49ca00
push edi
mov dword [0x4cbf24], eax
call esi
push eax
call fcn.0044f2ce
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4cbf28], eax
call esi
push eax
call fcn.0044f2ce
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4cbf2c], eax
call esi
push eax
call fcn.0044f2ce
pop ecx
mov dword [0x4cbf34], eax
test eax, eax
je 0x45908d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044f2ce
pop ecx
mov dword [0x4cbf30], eax
mov eax, dword [0x4cbf30]
cmp eax, ebx
je 0x4590e5
cmp dword [0x4cbf34], ebx
je 0x4590e5
push eax
call fcn.0044f349
push dword [0x4cbf34]
mov esi, eax
call fcn.0044f349
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4590e5
test edi, edi
je 0x4590e5
call esi
test eax, eax
je 0x4590dc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4590dc
test byte [ebp - 0xc], 1
jne 0x4590e5
or dword [ebp + 0x10], 0x200000
jmp 0x45911e
mov eax, dword [0x4cbf28]
cmp eax, ebx
je 0x45911e
push eax
call fcn.0044f349
pop ecx
test eax, eax
je 0x45911e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45911e
mov eax, dword [0x4cbf2c]
cmp eax, ebx
je 0x45911e
push eax
call fcn.0044f349
pop ecx
test eax, eax
je 0x45911e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4cbf24]
call fcn.0044f349
pop ecx
test eax, eax
je 0x45913e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x459140
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46056c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x4605b3
cmp edx, 0x10
jl 0x46059f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x46058c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x4605b3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x4605ab
and edx, 3
cmp edx, 3
jne 0x4605c7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x4605cc
cmp edx, 2
jne 0x4605d8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x4605dd
cmp edx, 1
jne 0x4605e3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x46566c
Capabilities:
Check os version

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

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

Disassembly:
push ebp
lea ebp, [esp - 0x1f8c]
mov eax, 0x200c
call fcn.00447c60
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x1f88], eax
cmp dword [0x4cdadc], 1
mov eax, dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], eax
jne 0x465bbc
push esi
xor esi, esi
cmp word [0x4cd0c8], si
je 0x465baa
push edi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00447660
push str.SerialNumber.txt
push 0x104
mov edi, 0x4cd0c8
push edi
mov dword [ebp - 0x80], esi
call fcn.00447b21
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 0x465ba9
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.00468135
add esp, 0xc
pop esi
push dword [ebp - 0x7c]
push 0x400
push 0x4cd2d8
call fcn.0044a00d
mov ecx, dword [ebp + 0x1f88]
xor ecx, ebp
add esp, 0xc
mov dword [0x4cd2d0], ebx
call fcn.00447645
add ebp, 0x1f8c
leave
ret
Function at 0x466cdc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4b1120]
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.00465593
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 0x466db8
cmp dword [ebp - 0x74], edi
jne 0x466d60
xor eax, eax
jmp 0x466d80
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
push dword [ebp - 0x74]
push eax
call fcn.0040a2d0
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.00465aab
cmp esi, edi
jne 0x466db8
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x466db8
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.00447645
add ebp, 0x1e8
leave
ret
Function at 0x467146
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x2a4
mov eax, dword [0x4b1120]
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.00465ad8
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.004654d3
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 0x4672ee
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.004653c2
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 0x4672e5
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 0x467233
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49e6b4
push dword [ebp - 0x74]
call esi
jmp 0x467241
push 0x49e6b4
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 0x467266
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49e6b8
push dword [ebp - 0x74]
call esi
jmp 0x467274
push 0x49e6b8
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 0x467299
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x49e6b0
push dword [ebp - 0x74]
call esi
jmp 0x4672a7
push 0x49e6b0
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 0x4672cc
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push str.PCVL
push dword [ebp - 0x74]
call esi
jmp 0x4672da
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 0x49e6c0
mov ebx, esi
call fcn.00465ad8
pop ecx
mov ecx, dword [ebp + 0x220]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447645
add ebp, 0x224
leave
ret 0x20
Function at 0x467317
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x4b1120]
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.00465ad8
pop ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x467372
push str.SerialNumber_GetCustomData__ERROR_ACCESS_DENIED_lpdwData_
push 5
pop ebx
jmp 0x46746f
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.004654d3
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 0x467467
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.004653c2
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 0x46745d
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x3c], edi
call fcn.00447660
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x49e7a8
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x467456
cmp dword [ebp - 0x80], edi
ja 0x467456
mov eax, dword [ebp + 0x288]
dec eax
je 0x467448
sub eax, 6
je 0x46743d
mov dword [ebp - 0x30], 0xa0
jmp 0x467456
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x60]
jmp 0x467451
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 0x467462
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.00465ad8
pop ecx
mov ecx, dword [ebp + 0x268]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00447645
add ebp, 0x26c
leave
ret 0x18
Function at 0x468135
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3fe8]
mov eax, 0x4068
call fcn.00447c60
mov eax, dword [0x4b1120]
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.0044d689
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.00447c36
add esp, 0x1c
lea eax, [ebp - 0x5c]
xor ebx, ebx
push eax
lea eax, [ebp + 0x3fa4]
cmp word [0x4cdcf8], bx
je 0x4681e2
push 0x4cdcf8
push eax
push str._s__s__s
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.00447c36
add esp, 0x18
jmp 0x4681f8
push eax
push 0x49d738
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.00447c36
add esp, 0x14
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x60], eax
mov eax, dword [0x4cdcf4]
cmp eax, ebx
je 0x46821a
lea ecx, [ebp + 0x1fa4]
push ecx
push ebx
push 0x180
push eax
call edi
mov eax, dword [0x4cdcf0]
cmp eax, ebx
je 0x468247
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 [0x4cdce8], ebx
je 0x4682b9
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push 0x4cdae0
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 0x49ee7c
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.00447b21
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1fa4]
push eax
call fcn.00447df8
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 [0x4cdcec], ebx
je 0x46831b
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1fa4]
cmp word [0x4cdcf8], bx
je 0x4682ea
push 0x4cdcf8
push 0x49d738
push esi
push eax
call fcn.00447c36
add esp, 0x14
jmp 0x4682f9
push 0x49ee74
push esi
push eax
call fcn.00447c36
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 [0x4cdcec]
mov dword [ebp - 0x6c], ebx
call edi
mov ecx, dword [ebp + 0x3fe4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447645
add ebp, 0x3fe8
leave
ret