joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1f20
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b1f58
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004affd7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004affaf
jmp 0x4b1f64
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b3612
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b3654
call fcn.004b93ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b3654
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b364b
xor eax, eax
jmp 0x4b365c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b3662
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b98fe
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b992c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b994a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b9864
jmp 0x4b994a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b994a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b9864
test edi, edi
mov eax, edi
jne 0x4b9934
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x63c01e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x63c01e9b
cmp byte [esi + ebx - 1], 0xa
je 0x63c01e6f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x63c080a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x47df30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004911b0
xor eax, eax
nop
mov cl, byte [eax + 0x48d1a0]
mov dl, byte [eax + 0x48d198]
mov byte [ebp + eax - 0x20], cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 8
jl 0x47df40
lea eax, [ebp - 8]
push 0x482d94
push eax
call fcn.00482130
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0047f930
add esp, 0x14
push ebx
push esi
mov dword [ebp - 0xc], 0
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [ebp - 0x10020]
push 1
push edx
call fcn.004837e4
add esp, 0x10
cmp eax, 0x18
jl 0x47e001
mov edi, eax
lea esi, [edi - 0x14]
test esi, esi
jle 0x47dfd0
xor edx, edx
xor ecx, ecx
mov bl, byte [ebp + ecx - 0x20]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x10020]
je 0x47dfee
cmp ecx, 0x14
je 0x494dce
inc edx
cmp edx, esi
jl 0x47dfb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea edx, [ecx + edi - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [ebp - 0xc], edx
call fcn.00483bb1
add esp, 0xc
jmp 0x47df84
mov bl, byte [ebp + ecx - 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001f]
je 0x47e00f
inc ecx
jmp 0x47dfc2
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp + ecx - 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001e]
je 0x47e024
add ecx, 2
jmp 0x47dfc2
mov bl, byte [ebp + ecx - 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001d]
jne 0x494dc6
mov bl, byte [ebp + ecx - 0x1c]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001c]
je 0x494db5
add ecx, 4
jmp 0x47dfc2
add ecx, 5
cmp ecx, 0x14
jl 0x47dfb2
jmp 0x47dfc2
add ecx, 3
jmp 0x47dfc2
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.00483bb1
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.004837e4
lea edx, [ebp - 8]
push 0x482d84
push edx
mov byte [ebp - 4], 0
call fcn.00483810
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x47e006
Function at 0x47e0d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x47ff98
call fcn.0047e060
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00482130
push esi
call fcn.0047fcac
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0047e190
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0047e1c0
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x47e124
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x482d74
push eax
call fcn.004834a2
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x496c55
push edi
call fcn.0047df30
cmp eax, ebx
je 0x496c5f
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00483526
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x47e183
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004837e4
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call 0x4b60ba
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x496c8b
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00483ac2
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x47e183

Function at 0x47e190
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00481a10
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x4a086d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4a0885
cmp eax, 0x10000
jne 0x4a08a9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.004837e4
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x4a08fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x4a0949
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00482d96
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x4a0ad7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4a2420], eax
mov edx, 1
mov eax, 0x4a2420
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a2ddc
jl 0x4a0aed
mov dword [0x48d05c], 1
mov dword [0x4a2df0], 1
pop edi
pop ebp
ret

Function at 0x4adb18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x34]
push edi
push 0x482da8
push eax
mov dword [ebp - 4], 0x414926
call fcn.004834a2
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x4adb6c
push eax
push 0xdeadbeef
push 0x1f
push esi
call fcn.004ada09
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.004a009e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 8], 1
jmp 0x4adb78
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
call dword [fcn.0047d724]
test eax, eax
je 0x4adbea
mov eax, dword [ebp + 8]
test eax, eax
je 0x4adbbe
push edi
push 1
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00482d96
mov eax, dword [ebp + 8]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x4adb78
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x4adc0f
push eax
push 0xdeadbeef
push 0x21
push esi
call fcn.004ada09
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.004a009e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.004ada09
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.004a009e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.004ada09
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.004a009e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401180
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push str.SOFTWAREIntellon_CorporationIdSetNWAAdapters
push 0x80000002
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x401263
push ebx
push ebx
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ebx
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4011e0
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x18], ebx
jbe 0x401258
mov ebp, 0x40c2c0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0x40d2e0
push ebx
push edx
mov dword [esp + 0x44], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401256
mov edi, 0x40d2e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
add ebp, 0x100
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
inc ecx
cmp ebx, eax
mov dword [esp + 0x14], ecx
jb 0x4011eb
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
jbe 0x4012c6
mov esi, 0x40c2c0
mov ebx, eax
push 1
push esi
call fcn.00401340
add esp, 8
cmp eax, 1
jne 0x40128c
mov dword [esp + 0x20], eax
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push 0
push str.SOFTWAREIntellon_CorporationIdSetNWAAdapters
push 0x80000002
call edi
test eax, eax
jne 0x4012bb
mov eax, dword [esp + 0x1c]
push esi
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x100
dec ebx
jne 0x401278
xor ebx, ebx
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push str.SOFTWAREIntellon_CorporationIdSetNWA
push 0x80000002
call edi
test eax, eax
jne 0x4012f8
mov eax, dword [esp + 0x10]
push str.Adapters
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push str.SOFTWAREIntellon_Corporation
push 0x80000002
call edi
test eax, eax
jne 0x40132a
mov eax, dword [esp + 0x10]
push str.IdSetNWA
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401340
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
push edi
xor esi, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00401eb0
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x20], ebp
je 0x4014b8
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push 0x40c1c0
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.NetworkAddress
push ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
jne 0x40149c
push edi
call fcn.00401dd0
mov esi, eax
add esp, 4
test esi, esi
je 0x40149c
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
mov edi, 4
push str.AdptProbeCount
push esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40140f
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 1
mov dword [esp + 0x28], eax
jbe 0x4013ff
mov dword [esp + 0x1c], 1
jmp 0x401430
lea edx, [esp + 0x28]
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
push edx
jmp 0x401425
lea eax, [esp + 0x28]
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], 1
push eax
push edi
push 0
push str.AdptProbeCount
push esi
call ebx
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40143f
cmp dword [esp + 0x1c], 1
jne 0x40149c
push str.NetworkAddress
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x34], 0
call ebp
push str.AdptProbeCount
push esi
call ebp
lea ecx, [esp + 0x28]
push edi
push ecx
push edi
push 0
mov ebp, 1
push str.RebootRequired
push esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], ebp
call ebx
lea edx, [esp + 0x2c]
push edi
push edx
push edi
push 0
push str.AdptNWAOverrideEnabled
push esi
mov dword [esp + 0x28], edi
call ebx
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call ebx
test esi, esi
je 0x4014ac
push esi
call ebx
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x401c90
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, str.SOFTWAREIntellon_CorporationIdSetNWAAdapters
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, edi
mov edx, ecx
mov edi, 0x40d3e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
mov ecx, edx
push eax
push 0xf003f
and ecx, 3
push ebx
push 0x40d3e0
push 0x80000002
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x401dc3
push ebx
push ebx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ebx
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebx
jbe 0x401db8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
push 0x40d2e0
push esi
push edx
mov dword [esp + 0x3c], 0x100
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push 0x40d2e0
push ecx
call ebp
test eax, eax
jne 0x401dab
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401d80
mov edx, dword [esp + 0x10]
push str.AdptProbeCount
push edx
call edi
mov eax, dword [esp + 0x10]
push str.ProbeTickCount
push eax
call edi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401da0
mov ecx, dword [esp + 0x10]
push str.RebootRequired
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jb 0x401d2b
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x401f90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push eax
xor edi, edi
call fcn.00401dd0
mov esi, eax
add esp, 4
test esi, esi
je 0x402044
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push edi
push str.ProbeTickCount
push esi
mov dword [esp + 0x38], 4
mov dword [esp + 0x28], 1
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x401ff0
call ebp
cmp eax, dword [esp + 0x14]
jbe 0x401ff5
mov edi, 1
cmp edi, 1
jne 0x402044
call ebp
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
add eax, 0x7530
push str.ProbeTickCount
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edx
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.NetCfgInstanceId
push esi
call ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402400
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x40ae84]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
je 0x40242c
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesClassNet
mov edi, 0x40d3e0
rep movsd dword es:[edi], dword [esi]
jmp 0x40243f
mov ecx, 0x13
mov esi, str.SystemCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov edi, 0x40d3e0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push 0x40d3e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402467
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret
push ebp
push ebx
push ebx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ebx
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp eax, ebx
jbe 0x4025aa
mov edi, 0x100
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ebx
push ecx
push 0x40d2e0
push ebp
push edx
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40258e
mov esi, dword [esp + 0x38]
mov eax, 0x40d2e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4024ec
cmp cl, bl
je 0x4024e8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4024ec
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4024c8
xor eax, eax
jmp 0x4024f1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40259d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push 0x40d2e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40258e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push 0x40c1c0
push eax
push ebx
push str.NetworkAddress
push ecx
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40258e
mov eax, dword [esp + 0x3c]
mov esi, 0x40c1c0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40256d
cmp cl, bl
je 0x402569
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40256d
add eax, 2
add esi, 2
cmp cl, bl
jne 0x402549
xor eax, eax
jmp 0x402572
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40258e
mov eax, dword [esp + 0x10]
push str.NetworkAddress
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jb 0x402495
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x4025f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [0x40ae80], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x40263f
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40263f
pop edi
pop esi
add esp, 0x9c
ret
mov ecx, dword [esp + 0x18]
mov eax, 1
cmp ecx, 2
jne 0x40269b
mov ecx, dword [esp + 0xc]
cmp ecx, 4
jg 0x402660
mov dword [0x40ae80], 6
cmp ecx, 5
jne 0x4026ed
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x402684
pop edi
mov dword [0x40ae80], 2
pop esi
add esp, 0x9c
ret
cmp ecx, eax
jne 0x4026ed
pop edi
mov dword [0x40ae80], 4
pop esi
add esp, 0x9c
ret
cmp ecx, eax
jne 0x4026ed
cmp dword [esp + 0xc], 4
jne 0x4026ed
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4026c1
pop edi
mov dword [0x40ae80], 5
pop esi
add esp, 0x9c
ret
cmp ecx, 0xa
jne 0x4026d9
pop edi
mov dword [0x40ae80], eax
mov dword [0x40ae84], eax
pop esi
add esp, 0x9c
ret
cmp ecx, 0x5a
jne 0x4026ed
mov dword [0x40ae80], 3
mov dword [0x40ae84], eax
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x402700
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov dword [esp + 8], eax
mov ebx, 1
call sub.KERNEL32.dll_GetCurrentProcessId
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x40ae88
push 0
push str.SOFTWAREIntellon_CorporationIdSetNWA
push 0x80000002
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4027e3
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xc]
push 4
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push 4
push 0
push 0x40a2d4
push eax
mov dword [esp + 0x20], 4
call esi
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.TickCount
push edx
mov dword [esp + 0x20], 4
call esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push 0x40c1c0
push ecx
push 0
push str.Shutdown
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop esi
jne 0x4027d8
mov eax, dword [esp + 0x18]
push str.Shutdown
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
add esp, 0x10
ret