joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x401ac2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x401ab4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x401aac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x401a75
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x401e80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x401e9e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x401e93
pop esi
ret

Function at 0x4123bf
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 0x4123ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41240b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00412325
jmp 0x41240b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41240b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00412325
test edi, edi
mov eax, edi
jne 0x4123f5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x30f07a22
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x78b00afa
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1014
push ebp
mov ebp, esp
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
or eax, 0xffffffff
mov dword [0x415c84], 9
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
mov dword [ebp - 8], eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
mov ecx, 0x1000
xor eax, eax
lea edx, [ebp - 0x1010]
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
mov edi, eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
test eax, eax
mov esi, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10004ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10026d18
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x1004f220]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
cmp dword [0x10051640], 0
je 0x10004faa
mov esi, dword [esp + 0x54]
cmp dword [esi + 0xf8], 0
je 0x10004faa
lea ecx, [esp + 8]
call fcn.1000a720
mov eax, dword [0x10051640]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 1
call fcn.1000a830
mov eax, dword [esi + 0x28]
lea edx, [esp + 8]
push edx
push 0
push 0x3c
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
push ecx
call fcn.1000a8e0
mov esi, dword [esi + 0x10]
lea ecx, [esp + 8]
mov dword [esp + 0x4c], 0xffffffff
call fcn.1000a760
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x48
ret 4
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x48
ret 4
Function at 0x100067a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026df0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1004f220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x34], ebx
je 0x100067e0
cmp dword [esi + 0x20], 1
jne 0x100067e0
mov dword [esi + 0x20], 2
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
mov dword [ebp - 4], ebx
neg ecx
or ecx, eax
push ecx
call fcn.1001526d
add esp, 4
mov dword [esi + 0x2c], eax
cmp eax, ebx
je 0x100068dd
cmp dword [0x10051640], ebx
je 0x10006836
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push eax
push ebx
push ebx
push 0xffffffffffffffff
call edi
push ebx
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x18]
push ebx
push ecx
push eax
call edi
mov dword [esi + 0x28], eax
jmp 0x1000683c
mov dword [esi + 0xc0], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], ebx
cmp dword [esi + 0x20], ebx
jbe 0x10006890
lea ebx, [ebx]
lea edx, [ebp + 8]
push edx
push ebx
push esi
push 0x10006700
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x2c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x2c]
cmp dword [ecx + eax*4], ebx
lea eax, [ecx + eax*4]
je 0x100068dd
mov edx, dword [eax]
push 0xf
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc dword [esi + 0x24]
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x20]
jb 0x10006850
cmp dword [esi + 0x98], ebx
je 0x100068be
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push 0x100064d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x94], eax
cmp eax, ebx
je 0x100068dd
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006c10
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xa8]
push 0x90
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10014830
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10006d9d
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x10006cd0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10006c8a
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x10006cfc
mov dword [esi], 0
mov dword [edi], eax
jmp 0x10006d9d
cmp eax, 0xa
jne 0x10006cab
cmp dword [esp + 0x18], 1
jne 0x10006d9d
mov dword [esi], 0
mov dword [edi], 2
jmp 0x10006d9d
cmp eax, 0x5a
jne 0x10006d9d
cmp dword [esp + 0x18], 1
jne 0x10006d9d
mov dword [esi], 0
mov dword [edi], 3
jmp 0x10006d9d
cmp eax, 3
jne 0x10006d16
cmp dword [esp + 0x10], 0x33
jne 0x10006d9d
cmp dword [esp + 0x18], 2
jne 0x10006d9d
mov dword [esi], 1
mov dword [edi], 4
jmp 0x10006d9d
cmp eax, 2
jne 0x10006d9d
mov dword [esi], 1
mov dword [edi], 5
jmp 0x10006d9d
cmp eax, 5
jne 0x10006d67
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10006d38
cmp dword [esp + 0x18], 2
jne 0x10006d9d
mov dword [esi], 1
mov dword [edi], 6
jmp 0x10006d9d
cmp eax, 1
jne 0x10006d4e
cmp dword [esp + 0x18], 2
jne 0x10006d9d
mov dword [esi], eax
mov dword [edi], 7
jmp 0x10006d9d
cmp eax, 2
jne 0x10006d9d
cmp dword [esp + 0x18], eax
jne 0x10006d9d
mov dword [esi], 1
mov dword [edi], 8
jmp 0x10006d9d
cmp eax, 6
jne 0x10006d9d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10006d89
cmp dword [esp + 0x18], 2
jne 0x10006d9d
mov dword [esi], 1
mov dword [edi], 9
jmp 0x10006d9d
cmp eax, 1
jne 0x10006d9d
cmp dword [esp + 0x18], 2
jne 0x10006d9d
mov dword [esi], eax
mov dword [edi], 0xa
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.100140b8
add esp, 0x98
ret 8

Function at 0x10006dc0
Capabilities:
Get system information on windows

Disassembly:
cmp dword [0x1005163c], 0
jne 0x10006e5a
call fcn.1000a930
push 0x10051644
push 0x10051640
call fcn.10006c10
push 0x10051648
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1005165c]
mov dword [0x100309c0], eax
mov eax, dword [0x10051660]
cmp eax, 0x24a
je 0x10006e33
cmp eax, 0x1e6
je 0x10006e33
cmp eax, 0x182
je 0x10006e33
cmp eax, 0x21d8
je 0x10006e46
cmp eax, 0x898
jne 0x10006e50
mov dword [0x1005166c], 3
mov dword [0x1005163c], 1
ret
mov dword [0x1005166c], 1
call fcn.10006ac0
test eax, eax
je 0x10006e50
mov dword [0x1005166c], 2
mov dword [0x1005163c], 1
ret
Function at 0x10007900
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10026e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x84c], eax
push esi
mov eax, dword [0x1004f220]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.1000aed0
push 0x208
lea eax, [esp + 0x650]
push eax
mov dword [esp + 0x868], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.pssdk42.sys
mov ecx, 0x104
push str.Drivers_s
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0x658]
push edx
call fcn.10007730
add esp, 0x10
test eax, eax
jge 0x1000799d
lea ecx, [esp + 8]
mov dword [esp + 0x860], 0xffffffff
call fcn.1000b140
xor eax, eax
jmp 0x100079dd
lea eax, [esp + 0x64c]
push eax
call fcn.1000b440
test eax, eax
je 0x10007985
lea ecx, [esp + 0x64c]
push ecx
push str.PSSDK42
lea edx, [esp + 0x10]
push edx
call fcn.10007220
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x860], 0xffffffff
call fcn.1000b140
mov eax, esi
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x84c]
xor ecx, esp
call fcn.100140b8
add esp, 0x85c
ret

Function at 0x10007a50
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.pssdk41.vxd
mov ecx, 0x104
push 0x10028394
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x10]
push edx
call fcn.100076d0
add esp, 0x10
test eax, eax
jge 0x10007ab9
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100140b8
add esp, 0x108
ret 4
lea eax, [esp + 4]
push eax
call fcn.1000b5c0
test eax, eax
je 0x10007a9f
push 1
push str.pssdk41.vxd
call fcn.100077f0
lea ecx, [esp + 4]
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x108]
xor eax, eax
cmp dword [esi], 0xffffffff
pop esi
setne al
xor ecx, esp
call fcn.100140b8
add esp, 0x108
ret 4
Function at 0x10007d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x268
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [esp + 0x274]
push esi
mov esi, dword [esp + 0x274]
push eax
push str._sNdiInterfaces
lea eax, [esp + 0x18]
push 0x50
push eax
call fcn.10007730
add esp, 0x10
test eax, eax
jge 0x10007da6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.100140b8
add esp, 0x268
ret 0xc
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10007d8c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.LowerRange
push eax
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x28], 1
call ebx
test eax, eax
je 0x10007e0c
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10007f2b
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push edi
push 0xffffffffffffffff
push str.nolower
push 0xffffffffffffffff
lea edx, [esp + 0x74]
push edx
push 1
push 0x800
xor edi, edi
call esi
cmp eax, 2
jne 0x10007e6e
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push str.UpperRange
push eax
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x2c], 1
call ebx
test eax, eax
jne 0x10007f1d
push 0xffffffffffffffff
push str.ndis5
jmp 0x10007ec2
push 0xffffffffffffffff
push 0x10028498
push 0xffffffffffffffff
lea edx, [esp + 0x74]
push edx
push 1
push 0x800
call esi
cmp eax, 2
jne 0x10007edc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.UpperRange
push eax
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x2c], 1
call ebx
test eax, eax
jne 0x10007f1d
push 0xffffffffffffffff
push str.ndiswanbh
push 0xffffffffffffffff
lea ecx, [esp + 0x74]
push ecx
push 1
push 0x800
call esi
cmp eax, 2
jne 0x10007f1d
lea edi, [eax - 1]
jmp 0x10007f1d
push 0xffffffffffffffff
push 0x1002847c
push 0xffffffffffffffff
lea edx, [esp + 0x74]
push edx
push 1
push 0x800
call esi
cmp eax, 2
jne 0x10007efc
xor edi, edi
jmp 0x10007f1d
push 0xffffffffffffffff
push str.tunnel
push 0xffffffffffffffff
lea eax, [esp + 0x74]
push eax
push 1
push 0x800
call esi
xor ecx, ecx
cmp eax, 2
setne cl
mov edi, ecx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [esp + 0x26c]
pop ebx
pop esi
xor ecx, esp
call fcn.100140b8
add esp, 0x268
ret 0xc
Function at 0x10008e70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x134
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x130], eax
push edi
mov edi, ecx
cmp byte [edi + 0x78], 0
lea eax, [edi + 0x78]
mov dword [esp + 0x10], eax
je 0x10008eac
mov al, 1
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.100140b8
add esp, 0x134
ret
cmp dword [edi + 0x5c], 0
je 0x10008efb
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesVxDDHCP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008efb
mov edx, dword [esp + 4]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x28]
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10008f13
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.100140b8
add esp, 0x134
ret
push ebx
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jbe 0x10009035
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push eax
mov dword [esp + 0x40], 0x14
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10008fec
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008fec
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push str.HardwareAddress
push ecx
mov dword [esp + 0x3c], 0x100
call ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x60]
lea esi, [esp + 0x40]
cmp eax, 4
jb 0x10008fc8
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x10008fec
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x10008fb4
test eax, eax
je 0x10008ff9
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10008fec
cmp eax, 1
jbe 0x10008ff9
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10008fec
cmp eax, 2
jbe 0x10008ff9
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x10008ff9
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x10008f28
jmp 0x10009033
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x2c]
mov edx, 0x14
sub esi, eax
jmp 0x10009010
lea ecx, [edx + 0x7fffffea]
test ecx, ecx
je 0x1000902b
mov cl, byte [esi + eax]
test cl, cl
je 0x1000902b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x10009010
jmp 0x1000902f
test edx, edx
jne 0x10009030
dec eax
mov byte [eax], 0
pop esi
pop ebp
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp byte [ecx], al
mov ecx, dword [esp + 0x138]
pop ebx
setne al
pop edi
xor ecx, esp
call fcn.100140b8
add esp, 0x134
ret
Function at 0x100096a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
mov ebp, ecx
lea eax, [ebp + 0x78]
push eax
push str.SYSTEMCurrentControlSetServicesVxDDHCP
push 0x10028914
lea ecx, [esp + 0x20]
push 0x208
push ecx
call fcn.100076d0
add esp, 0x14
test eax, eax
jl 0x1000982f
push ebx
lea edx, [esp + 0x10]
push edx
push 0x20019
xor ebx, ebx
push ebx
lea eax, [esp + 0x24]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000982e
test byte [esp + 0x228], 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
je 0x100097da
push esi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.DhcpIPAddress
push ecx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x1000979b
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10009761
push eax
call fcn.10006b80
push eax
mov ecx, ebp
call fcn.100091c0
jmp 0x1000979b
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.IPAutoconfigurationAddress
push edx
mov dword [esp + 0x2c], 0x208
mov byte [esp + 0x38], bl
call edi
mov esi, eax
cmp esi, ebx
jne 0x1000979b
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.100091f0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.DhcpSubnetMask
push ecx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], ebx
call edi
cmp esi, ebx
pop esi
jne 0x100097da
mov edx, dword [esp + 0xc]
push edx
call fcn.10006b80
push eax
mov ecx, ebp
call fcn.10009160
test byte [esp + 0x22c], 2
je 0x10009822
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.DhcpServer
push eax
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x10009822
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10006b80
push eax
mov ecx, ebp
call fcn.10009220
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [esp + 0x21c]
pop ebp
xor ecx, esp
call fcn.100140b8
add esp, 0x21c
ret 4
Function at 0x10009850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesVxDMSTCP
push 0x80000002
mov ebp, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000992e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x1c], al
lea eax, [esp + 0x18]
push eax
push 0
push str.EnableDNS
push ecx
mov dword [esp + 0x20], 0x104
call esi
test eax, eax
jne 0x10009922
push 0x10028928
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10009922
mov byte [esp + 0x14], al
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.NameServer
push eax
mov dword [esp + 0x20], 0x104
call esi
cmp dword [esp + 0x10], 7
jne 0x10009916
cmp dword [esp + 8], 1
jbe 0x10009916
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.10008ba0
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.100092e0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x114]
pop ebp
xor ecx, esp
call fcn.100140b8
add esp, 0x114
ret