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

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x473f7d
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x473ffc
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00471f34
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x473fca
mov cx, word [esp]
sub cx, si
jmp 0x473fcc
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x473fb3
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x473ff2
mov cx, word [esp]
sub cx, si
jmp 0x473ff4
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x473fdb
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x474059
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00473c24
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x474044
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x474059
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x473f5a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x479c7c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x48ac78
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x479c9e
shr eax, 1
xor eax, 0xedb88320
jmp 0x479ca0
shr eax, 1
dec edx
jne 0x479c8c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x479c85
mov byte [0x48b078], 1
pop esi
pop ebx
ret

Function at 0x479cbc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x48b078], 0
jne 0x479cd3
call fcn.00479c7c
mov eax, edi
dec eax
test eax, eax
jl 0x479cfc
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x48ac78]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x479cdd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x47c818
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x47c849
dec al
je 0x47c885
dec al
je 0x47c8c9
dec al
je 0x47c934
jmp 0x47c9be
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x47c9be
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47c859
jmp 0x47c9be
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47c9be
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47c895
jmp 0x47c9be
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47c9be
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x47c8f7
xor ebp, ebp
jmp 0x47c908
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x47c911
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47c8d9
jmp 0x47c9be
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47c9be
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x47c98c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00479d04
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47c948
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40da20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x40da42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40da49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40da38
mov eax, 1
add ebx, ebx
jne 0x40da5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40da50
jne 0x40da6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da50
xor ecx, ecx
sub eax, 3
jb 0x40da80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40daf2
mov ebp, eax
add ebx, ebx
jne 0x40da8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40da98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40dabc
inc ecx
add ebx, ebx
jne 0x40daa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40da9d
jne 0x40dab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40dadc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40dacd
jmp 0x40da3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40dadc
add edi, ecx
jmp 0x40da3e
pop esi
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40db3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40daf9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd068]
or eax, eax
je 0x40db35
mov dword [ebx], eax
add ebx, 4
jmp 0x40db16
call dword [esi + 0xd078]
mov ebp, dword [esi + 0xd06c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40db6f
sub esp, 0xffffff80
jmp 0x40b206
Function at 0x401860
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
push esi
push 1
push str.SeDebugPrivilege
mov dword [esp + 0xc], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4018ea
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4018ea
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4018ea
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
push esi
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push esi
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4018ea
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x4018f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x1c
ret

Function at 0x401900
Capabilities:
Terminate process

Disassembly:
sub esp, 0x214
mov eax, dword [0x57f970]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
je 0x40196d
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 4]
cmp ecx, dword [esp]
jne 0x40194e
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, 1
call fcn.005072ec
add esp, 0x214
ret
Function at 0x401990
Capabilities:
Get file size
Read file via mapping
Terminate process

Disassembly:
sub esp, 0x214
mov eax, dword [0x57f970]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x18]
push eax
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
push 0x80
push 3
push ebp
push 7
push SysReAllocString
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a58
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401a4a
push ebp
push ebp
push ebp
push 2
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x401a4e
push ebp
push ebp
push ebp
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x401a4e
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test eax, eax
je 0x401a3e
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x10]
jne 0x401a3e
push esi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x401a5c
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x401a5c
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x401a5c
mov edi, dword [esp + 0xc]
test edi, edi
je 0x401a67
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x401a87
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.005072ec
add esp, 0x214
ret

Function at 0x403f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040ccef
Function at 0x4041e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push 0
push 0
call ebx
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408ce1
add esp, 4
push eax
push esi
mov dword [esp + 0x14], eax
call ebx
mov ebx, dword [esp + 0xc]
cmp word [ebx], 0
mov esi, ebx
je 0x40428d
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40426e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404237
sub eax, edx
sar eax, 1
add eax, eax
push eax
mov eax, dword [edi]
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*4 + 4]
push esi
push edx
call fcn.0050b020
add esp, 0xc
mov ecx, esi
call fcn.004042b0
mov ecx, dword [edi]
mov dword [edi + ecx*4 + 0x13c], eax
inc dword [edi]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404273
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x404226
push ebx
call fcn.00408cec
add esp, 4
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4045f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404609
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404644
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404640
lea ebx, [ebx]
cmp esi, eax
jae 0x404644
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404630
cmp esi, eax
jb 0x40464a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404b50
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404b56
push esi
push edi
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [esp + 8]
push eax
push 0x102
push 0
push 0x55c6d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x404bb2
mov eax, dword [esp + 8]
test eax, eax
je 0x404bc1
lea ecx, [edi + edi + 2]
push ecx
push ebx
push 1
push esi
push 0x55c6bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x404bc1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret
Function at 0x404bd0
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [esp + 8], 0xffffffff
jb 0x404bde
xor eax, eax
pop ecx
ret 4
push esi
lea eax, [esp + 4]
push eax
push 0x102
push 0
push 0x55ca38
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x404c29
mov eax, dword [esp + 4]
test eax, eax
je 0x404c38
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push esi
push 0x55ca0c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x404c38
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret 4
Function at 0x404c50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
lea edx, [eax + 2]
xor ebx, ebx
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404c60
sub eax, edx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sar eax, 1
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x102
push ebx
push str.SYSTEMCurrentControlSetControlComputerNameActiveComputerName
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x404cb4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404cc3
lea ecx, [esi + esi + 2]
push ecx
push edi
push 1
push ebx
push 0x55c7e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404cc3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea edx, [eax + 2]
jmp 0x404cd0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404cd0
sub eax, edx
lea edx, [esp + 0x10]
push edx
push 0x102
push ebx
push str.SYSTEMCurrentControlSetControlComputerNameComputerName
sar eax, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, eax
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x404d1d
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404d2c
lea ecx, [esi + esi + 2]
push ecx
push edi
push 1
push ebx
push 0x55c994
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404d2c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404d31
sub eax, edx
lea edx, [esp + 0x10]
push edx
push 0x102
push ebx
push 0x55cc38
sar eax, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, eax
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x404d7e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404d8d
lea ecx, [esi + esi + 2]
push ecx
push edi
push 1
push ebx
push str.NV_Hostname
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404d8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404d92
sub eax, edx
lea edx, [esp + 0x10]
push edx
push 0x102
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParameters
sar eax, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, eax
mov dword [esp + 0x24], ebx
call ebp
mov esi, eax
pop ebp
cmp esi, ebx
jne 0x404de8
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x404df7
mov edx, dword [esp + 0x14]
lea ecx, [edi + edi + 2]
push ecx
push edx
push 1
push ebx
push str.Hostname
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x404df7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
pop edi
pop esi
sete al
pop ebx
pop ecx
ret 4
Function at 0x405000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
push 0x101
xor ebx, ebx
push ebx
push 0x55cd28
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4050af
mov edx, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 8]
push ecx
push ebx
push ebx
push ebx
push 0x55cd84
push edx
call edi
test eax, eax
jne 0x4050a3
mov eax, dword [esp + 8]
cmp eax, 0x43
jbe 0x4050a3
add eax, 4
push esi
push eax
call fcn.00408ce1
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 4
push eax
push ebx
push esi
call fcn.00508a80
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push esi
push ebx
push ebx
push 0x55cda8
push edx
call edi
test eax, eax
jne 0x405099
mov eax, dword [esp + 0xc]
push eax
mov eax, esi
call fcn.00404e80
mov ebx, eax
push esi
call fcn.00408cec
add esp, 4
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x4050c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push 0x103
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40518e
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 4]
push ecx
push eax
push eax
push eax
push 0x55ce2c
push edx
call esi
test eax, eax
jne 0x405182
mov eax, dword [esp + 4]
cmp eax, 0x43
jbe 0x405182
add eax, 4
push edi
push eax
call fcn.00408ce1
mov edi, eax
mov eax, dword [esp + 0xc]
add eax, 4
push eax
push 0
push edi
call fcn.00508a80
mov edx, dword [esp + 0x1c]
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push edi
push 0
push 0
push 0x55ce50
push edx
call esi
test eax, eax
jne 0x405178
test edi, edi
je 0x40515e
mov eax, dword [esp + 8]
push eax
call fcn.00404e10
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ecx
push edi
push 0
push 0
push str.DigitalProductId
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.00408cec
add esp, 4
pop edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x4051a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4051a6
push esi
push edi
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [esp + 8]
push eax
push 0x102
push 0
push 0x55cfd4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x405202
mov eax, dword [esp + 8]
test eax, eax
je 0x405211
lea ecx, [edi + edi + 2]
push ecx
push ebx
push 1
push esi
push str.Identifier
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x405211
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret

Function at 0x405220
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405226
push esi
push edi
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [esp + 8]
push eax
push 0x102
push 0
push 0x55d02c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x405282
mov eax, dword [esp + 8]
test eax, eax
je 0x405291
lea ecx, [edi + edi + 2]
push ecx
push ebx
push 1
push esi
push str.SystemBiosDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x405291
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret

Function at 0x4052a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4052a6
push esi
push edi
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [esp + 8]
push eax
push 0x102
push 0
push str.HARDWAREDESCRIPTIONSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x405302
mov eax, dword [esp + 8]
test eax, eax
je 0x405311
lea ecx, [edi + edi + 2]
push ecx
push ebx
push 7
push esi
push str.SystemBiosVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x405311
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret