joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d610
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x58]
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, str.hardwaredevicemap_serialcomm
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x40d6b4
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryInfoKeyA
mov eax, dword [ebp - 8]
lea esi, [eax - 1]
test esi, esi
jl 0x40d6ac
mov edi, 0xffffffff
nop
add edi, 1
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x58], 8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumValueA
lea eax, [ebp - 0x50]
call fcn.0040b280
mov edx, eax
mov eax, ebx
mov ecx, dword [ebx]
call dword [ecx + 0x14]
cmp esi, edi
jg 0x40d668
nop
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40bba4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4439e8]
jne 0x40bbae
repz ret
jmp fcn.00410b28

Function at 0x41c3fa
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410658
xor ebx, ebx
cmp dword [0x44d654], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41c4cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41c43a
xor eax, eax
jmp 0x41c593
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x439b00
push edi
call esi
cmp eax, ebx
je 0x41c433
push eax
call fcn.004105f5
mov dword [esp], 0x439af0
push edi
mov dword [0x44d654], eax
call esi
push eax
call fcn.004105f5
mov dword [esp], 0x439adc
push edi
mov dword [0x44d658], eax
call esi
push eax
call fcn.004105f5
mov dword [0x44d65c], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f387
test eax, eax
pop ecx
pop ecx
je 0x41c49d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041015f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41c4cf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004105f5
cmp eax, ebx
pop ecx
mov dword [0x44d664], eax
je 0x41c4cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004105f5
pop ecx
mov dword [0x44d660], eax
mov eax, dword [0x44d660]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41c548
cmp dword [0x44d664], esi
je 0x41c548
push eax
call fcn.00410661
pop ecx
call eax
cmp eax, ebx
je 0x41c515
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44d664]
call fcn.00410661
pop ecx
call eax
test eax, eax
je 0x41c515
test byte [ebp - 0x18], 1
jne 0x41c548
lea eax, [ebp - 0xc]
push eax
call fcn.0040f3be
test eax, eax
pop ecx
je 0x41c530
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041015f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41c53f
or dword [ebp + 0x10], 0x200000
jmp 0x41c579
or dword [ebp + 0x10], 0x40000
jmp 0x41c579
mov eax, dword [0x44d658]
cmp eax, esi
je 0x41c579
push eax
call fcn.00410661
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41c579
mov eax, dword [0x44d65c]
cmp eax, esi
je 0x41c579
push dword [ebp - 4]
push eax
call fcn.00410661
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44d654]
call fcn.00410661
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421750
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x210
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], esi
call fcn.0040bfd0
mov edx, dword [esp + 0x234]
lea ecx, [esp + 0x238]
push ecx
push edx
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00430747
mov eax, dword [esp + 0x240]
add esp, 0x1c
sub eax, 1
je 0x4217d4
sub eax, 1
je 0x4217cd
sub eax, 1
je 0x4217c6
mov eax, 7
jmp 0x4217d9
mov eax, 0xa
jmp 0x4217d9
mov eax, 0xe
jmp 0x4217d9
mov eax, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 1
mov ebp, 3
mov eax, dword [0x444da0]
and eax, edi
sub eax, 1
je 0x421846
sub eax, 1
je 0x421832
sub eax, 2
jne 0x421854
mov eax, dword [0x44d68c]
test eax, eax
je 0x421854
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00401af0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401d00
mov ecx, esi
call fcn.00401940
jmp 0x421854
lea edx, [esp + 0x14]
push edx
push 0x439b40
call fcn.0041c81c
add esp, 8
jmp 0x421854
lea eax, [esp + 0x14]
push eax
call ebx
push 0x436724
call ebx
add edi, edi
sub ebp, 1
jne 0x4217f1
mov ecx, dword [esp + 0x10]
push 7
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.0040c2c4
add eax, 0x20
push eax
call fcn.00411e8e
mov ecx, dword [esp + 0x220]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040bba4
add esp, 0x210
ret
Function at 0x429ef0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x429f02
call fcn.00429740
xor eax, eax
pop edi
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test esi, esi
mov edi, eax
je 0x429f7e
test edi, edi
je 0x429f7e
mov eax, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x429f7e
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push edi
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x429f7e
cmp ebx, dword [esp + 0x14]
jne 0x429f7e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 1
pop edi
ret
call fcn.00429740
pop esi
pop ebx
xor eax, eax
pop edi
ret

Function at 0x42a730
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x2f8
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x2f4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
push esi
push edi
xor esi, esi
lea edi, [esp + 0xc]
jmp 0x42a760
push 0x1a8
lea eax, [esp + 0xc0]
push 0
push eax
call fcn.0040bfd0
add esp, 0xc
push 0
lea ecx, [esp + 0xc0]
push ecx
push esi
push 0
mov dword [esp + 0xcc], 0x1a8
call ebx
test eax, eax
je 0x42a7c9
push str.Intel_Corporation
lea edx, [esp + 0xe4]
push edx
call fcn.00422540
test eax, eax
jne 0x42a7c9
lea eax, [esp + 0xe0]
push str.Embedded_Media_and_Graphics_Driver
push eax
call fcn.00430fc0
add esp, 8
test eax, eax
je 0x42a7c9
mov dword [edi], esi
add edi, 4
add esi, 1
cmp esi, 5
jb 0x42a760
mov edx, dword [esp + 0x308]
mov eax, dword [esp + edx*4 + 0xc]
push 0
lea ecx, [esp + 0xc0]
push ecx
push eax
push 0
call ebx
test eax, eax
je 0x42a8d5
mov esi, 0x9c
push esi
lea ecx, [esp + 0x268]
push 0
push ecx
call fcn.0040bfd0
add esp, 0xc
lea edx, [esp + 0x264]
push edx
push 0xfffffffffffffffe
lea eax, [esp + 0xc8]
push eax
mov word [esp + 0x294], si
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
jne 0x42a83a
push str.Store_default_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esp + 0x160]
test al, 1
je 0x42a8d5
test al, 4
jne 0x42a8d5
push esi
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.0040bfd0
add esp, 0xc
cmp byte [0x44d8b1], 0
mov word [esp + 0x44], si
mov dword [esp + 0x48], 0x7c0020
je 0x42a8b0
mov edx, dword [0x44d8b4]
push str.test_change_display_settings
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x20]
push 0x10000000
push ecx
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f4]
xor ecx, esp
call fcn.0040bba4
add esp, 0x2f8
ret
push 0x10000001
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc8]
push eax
call fcn.00429880
push 0
push 0
push 0
call fcn.00429880
add esp, 0x18
mov ecx, dword [esp + 0x300]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bba4
add esp, 0x2f8
ret
Function at 0x42aa50
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push str.GmchRegDev
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push str.gmchReg.sys
call fcn.00429ef0
add esp, 8
mov esi, eax
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.gmchReg.sys
lea ecx, [esp + 0xc]
push ecx
mov edx, ecx
push 0x43c1d8
push edx
call fcn.0040ef27
add esp, 0x10
lea eax, [esp + 8]
push eax
push str.gmchReg.sys
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test esi, esi
je 0x42aaef
push str.gmchReg
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xf]
call fcn.0042e3a0
test eax, eax
jne 0x42aaef
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040bba4
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040bba4
add esp, 0x108
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x104], eax
cmp byte [0x44d8b0], 0
mov eax, 1
je 0x42aba1
push esi
push str.gmchReg
lea ecx, [esp + 0xb]
call fcn.0042e300
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.gmchReg.sys
lea ecx, [esp + 0xc]
push ecx
mov edx, ecx
push 0x43c1d8
push edx
call fcn.0040ef27
add esp, 0x10
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
je 0x42ab99
mov byte [0x44d8b0], 0
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040bba4
add esp, 0x108
ret
call fcn.00429740
mov eax, esi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040bba4
add esp, 0x108
ret
Function at 0x42c050
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlClass4d36e968_e325_11ce_bfc1_08002be10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], eax
mov edi, 8
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42c1fd
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
xor esi, esi
jmp 0x42c0c0
push esi
lea eax, [esp + 0x12c]
push str.000_d
push eax
xor bl, bl
call fcn.0040ef27
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x144]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42c1d2
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.DriverDesc
push edx
call ebp
test eax, eax
jne 0x42c191
push str.Intel_Corporation
lea eax, [esp + 0x2c]
push eax
call fcn.00422540
test eax, eax
jne 0x42c191
lea ecx, [esp + 0x28]
push str.Embedded_Media_and_Graphics_Driver
push ecx
call fcn.00430fc0
add esp, 8
test eax, eax
je 0x42c191
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.InfPath
push edx
call ebp
test eax, eax
jne 0x42c191
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x42c181
xor edi, edi
mov bl, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x42c1d7
add esi, 1
cmp esi, 4
jl 0x42c0c0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040bba4
add esp, 0x21c
ret
call fcn.00429740
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040bba4
add esp, 0x21c
ret
call fcn.00429740
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040bba4
add esp, 0x21c
ret
Function at 0x42c4e0
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
sub esp, 0x124
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x130]
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, dword [esp + 0x134]
push edi
push 0x100
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov edi, 4
mov dword [esp + 0x2c], 0x100
call fcn.0040bfd0
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x42c642
push ebx
lea ecx, [esp + 0x34]
push ecx
mov edx, ecx
push 0x43c1d8
push edx
call fcn.0040ef27
add esp, 0x10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42c642
mov ebx, dword [esp + 0x1c]
push str.Name
push ebx
call fcn.0040c5c9
add esp, 8
test eax, eax
je 0x42c5cd
push str.PortOrder
push ebx
call fcn.0040c5c9
add esp, 8
test eax, eax
jne 0x42c5e7
mov eax, ebp
mov esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c5d7
sub eax, edx
lea edi, [eax + 1]
jmp 0x42c601
push 0
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.00417d25
add esp, 0xc
mov dword [esp + 0x24], eax
lea ebp, [esp + 0x24]
mov esi, edi
mov ecx, dword [esp + 0x10]
push edi
push ebp
push esi
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42c62f
call fcn.00429740
mov edx, dword [esp + 0x10]
push edx
mov esi, 8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42c64c
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42c64c
call fcn.00429740
mov eax, 8
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bba4
add esp, 0x124
ret
Function at 0x42c670
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x120
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x130]
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, dword [esp + 0x130]
push edi
mov edi, dword [esp + 0x13c]
push 0x100
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x1c], 0x100
call fcn.0040bfd0
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x42c7e2
push ebx
lea ecx, [esp + 0x30]
push ecx
mov edx, ecx
push 0x43c1d8
push edx
call fcn.0040ef27
add esp, 0x10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [esp + 0x48]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42c7e2
push str.Name
push edi
call fcn.0040c5c9
add esp, 8
test eax, eax
je 0x42c763
push str.PortOrder
push edi
call fcn.0040c5c9
add esp, 8
test eax, eax
jne 0x42c7ab
mov eax, dword [esp + 0x1c]
mov esi, 1
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push eax
push ebp
push 0
push edi
push edx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42c7b5
call fcn.00429740
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
jmp 0x42c7ec
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
jmp 0x42c76c
cmp esi, 4
jne 0x42c7d1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push eax
push 0x4378b0
push ecx
call fcn.0040ef27
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
jmp 0x42c7ec
call fcn.00429740
mov eax, 8
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bba4
add esp, 0x120
ret

Function at 0x42c810
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x42c893
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c822
sub eax, edx
je 0x42c893
mov edx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42c885
mov ecx, dword [esp + 0x18]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x42c874
call fcn.00429740
mov edi, 8
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret
call fcn.00429740
pop edi
mov eax, 8
pop esi
pop ecx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x42c885
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x42cc10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x734
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x730], eax
push esi
push edi
mov edi, dword [esp + 0x744]
mov esi, dword [esp + 0x740]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x660]
push eax
push edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3b], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x42cc86
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x730]
xor ecx, esp
call fcn.0040bba4
add esp, 0x734
ret
cmp dword [esp + 0xc], 0
je 0x42ccc8
cmp dword [0x444d9c], 0
jbe 0x42ccc8
push esi
push str._n_s_n
push 4
call fcn.00421750
add esp, 0xc
cmp dword [0x444d9c], 0
jbe 0x42ccc8
push str.DATA
push str.VALUE_NAME
push str.__27s__s
push 4
call fcn.00421750
add esp, 0x10
xor esi, esi
cmp dword [esp + 0xc], esi
push ebp
jbe 0x42cd91
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x42cce0
mov eax, 0x100
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x140]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x350]
push edx
push esi
push edi
call ebp
test eax, eax
jne 0x42cd87
push 0x200
push eax
lea eax, [esp + 0x444]
push eax
call fcn.0040bfd0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x44c]
push edx
push eax
push ecx
lea edx, [esp + 0x158]
push edx
call fcn.0042c220
add esp, 0x20
cmp dword [0x444d9c], 0
jbe 0x42cd78
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x340]
push ecx
push str.__27s__s
push 4
call fcn.00421750
add esp, 0x10
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x42cce0
jmp 0x42cd91
call fcn.00429740
mov byte [esp + 0xf], 0
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x42ce4b
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ebx, [ebx]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x54]
push eax
push esi
push edi
mov dword [esp + 0x48], 0x100
call ebp
test eax, eax
je 0x42cdde
call fcn.00429740
mov byte [esp + 0x13], 0
jmp 0x42ce3d
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
push edi
call ebx
test eax, eax
jne 0x42ce3d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x248]
push 0x43c1d8
push eax
call fcn.0040ef27
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x254]
push edx
call fcn.0042cc10
mov eax, dword [esp + 0x34]
add esp, 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
cmp esi, dword [esp + 0x20]
jb 0x42cdb0
pop ebx
mov ecx, dword [esp + 0x73c]
mov al, byte [esp + 0xf]
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.0040bba4
add esp, 0x734
ret
Function at 0x42e1b0
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x42e1d6
pop esi
add esp, 0x1c
ret 8
push edi
lea edx, [esp + 8]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 8

Function at 0x42e240
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x42e272
ret 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret 0xc

Function at 0x42e420
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x194
mov eax, dword [0x4439e8]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
lea eax, [esp + 4]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42e464
push 0x80
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x42e464
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call fcn.0040bba4
add esp, 0x194
ret 4