joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100082e0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x10020d00
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x10008394
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [ecx + edx], 0
je 0x1000839c
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x1000838a
test edx, edx
jle 0x10008354
mov edi, 0x1001e6bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, ebp
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [eax + 0xa]
cmp edx, ecx
jl 0x10008326
add dword [esp + 0x10], 4
jmp 0x1000830a
mov eax, dword [esp + 0x1c]
add esp, 0x18
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x100083b0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100083c0
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret

Function at 0x100085c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0xe], ax
call edi
cmp eax, 0xffffffff
push esi
jne 0x10008617
call fcn.100083b0
add esp, 4
test eax, eax
je 0x10008672
push esi
call fcn.100083b0
add esp, 4
push eax
call edi
push 6
push 1
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10008672
lea edx, [esp + 0x24]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x38], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi]
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000867a
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x10008690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.100080e0
add esp, 0xc
test eax, eax
je 0x10008737
cmp eax, 4
jne 0x100086d8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.100083d0
add esp, 0x14
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 4
pop ebx
ret
mov edx, dword [edi]
push 0
push 0x5000
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10008737
test eax, eax
je 0x10008737
cmp byte [esi], 5
jne 0x10008737
mov cl, byte [esi + 3]
cmp cl, 1
je 0x10008704
cmp cl, 3
jne 0x10008737
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
call fcn.100083d0
add esp, 0x14
test eax, eax
je 0x10008737
mov al, byte [esi + 1]
cmp al, 1
je 0x1000872e
cmp al, 3
jne 0x10008737
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10008740
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x124
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x11
mov dword [esp + 0x10], eax
push 2
mov dword [esp + 0x18], eax
push 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x10
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000878e
xor eax, eax
pop esi
add esp, 0x124
ret
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x100087ab
xor eax, eax
pop esi
add esp, 0x124
ret
mov edx, dword [esp + 0x130]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push esi
mov dword [edx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x28]
push edx
call fcn.100082e0
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x12c]
pop esi
mov dword [ecx + 4], eax
mov ax, word [esp + 6]
mov word [ecx + 8], ax
mov eax, 1
add esp, 0x124
ret
Function at 0x10008b80
Capabilities:
Create tcp socket
Initialize winsock library
Start tcp server

Disassembly:
sub esp, 0x1b0
lea eax, [esp + 0x20]
push esi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10008cb5
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
je 0x10008cb5
mov dx, word [0x100211d8]
xor ecx, ecx
mov dword [esp + 0xe], ecx
push edx
mov dword [esp + 0x16], ecx
mov word [esp + 0x10], 2
mov dword [esp + 0x1a], ecx
mov word [esp + 0x1e], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
lea eax, [esp + 0xc]
push 0x10
push eax
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10008cb5
push ebx
push ebp
push edi
push 0x32
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10008c24
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x1b0
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CloseHandle
push str.KERNEL32.dll
call edi
push eax
call esi
push str.Sleep
push str.KERNEL32.dll
mov dword [esp + 0x18], eax
call edi
push eax
call esi
push str.CreateThread
push str.KERNEL32.dll
mov dword [esp + 0x30], eax
call edi
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
mov ebx, eax
call dword [sym.imp.WS2_32.dll_accept]
push 8
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
test eax, eax
je 0x10008c30
lea edx, [esp + 0x2c]
mov dword [eax], ebp
push edx
push 0
push eax
push 0x10008800
push 0
push 0
call ebx
test eax, eax
jne 0x10008cab
push 0x3e8
call dword [esp + 0x2c]
jmp 0x10008c30
push eax
call dword [esp + 0x14]
jmp 0x10008c30
xor eax, eax
pop esi
add esp, 0x1b0
ret

Function at 0x10008e90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x10008ecb
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push 0
lea ecx, [edi + eax]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10008ed2
sub esi, eax
add edi, eax
test esi, esi
jg 0x10008ea6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x10009dd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov al, 0x65
push ebx
mov byte [ebp - 0xf], al
mov byte [ebp - 0xc], al
mov al, 0x6c
push esi
push edi
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], al
mov byte [ebp - 5], al
mov byte [ebp - 4], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov cl, 0x65
mov al, 0x74
mov dl, 0x79
mov bl, 0x72
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x23], cl
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], cl
mov byte [ebp - 0x1c], 0x6d
mov byte [ebp - 0x1b], 0x44
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x17], 0x63
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], dl
mov byte [ebp - 0x12], 0x41
mov byte [ebp - 0x11], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push eax
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.DeleteFileA
push str.KERNEL32.dll
mov dword [ebp - 0x2c], eax
call esi
push eax
call edi
push str.lstrcatA
push str.KERNEL32.dll
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
mov dword [ebp - 0x30], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
lea edx, [ebp - 0x134]
push 0x104
push edx
call dword [ebp - 0x2c]
lea eax, [ebp - 0x134]
push str._syslog.dat
push eax
call dword [ebp - 0x30]
lea ecx, [ebp - 0x134]
push ecx
call dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009f00
Capabilities:
Contain obfuscated stackstrings
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov al, 0x65
push ebx
mov byte [ebp - 0x23], al
mov byte [ebp - 0x20], al
mov al, 0x6c
push esi
push edi
mov byte [ebp - 0x24], 0x6b
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x6e
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], al
mov byte [ebp - 0x18], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov al, 0x73
mov byte [ebp - 0x14], 0x45
mov byte [ebp - 0x13], 0x78
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x24]
push eax
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Sleep
push str.KERNEL32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
mov dword [ebp - 4], eax
call fcn.10009dd0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0x30
mov edi, eax
call esi
add esp, 4
push 0x10000
push 0x10021994
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x30
mov ebx, eax
call esi
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x30
call esi
add esp, 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push 0x30
call esi
add esp, 4
push edi
call ebx
push 1
push 0
push 3
call fcn.100123d0
add esp, 0xc
push 0xa
call dword [ebp - 4]
push 0
push 0
push 1
call fcn.100123d0
add esp, 0xc
push 0
call dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a050
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x138
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CloseHandle
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
mov dword [esp + 0x20], eax
call esi
push eax
call edi
push str.Process32First
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
push str.Process32Next
push str.KERNEL32.dll
mov ebp, eax
call esi
push eax
call edi
push str.lstrcmpiA
push str.KERNEL32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
call esi
add esp, 4
push 0
push 2
call ebx
push 0x30
mov edi, eax
call esi
push 0x30
mov dword [esp + 0x28], 0x128
call esi
add esp, 8
lea eax, [esp + 0x20]
push eax
push edi
call ebp
push 0x30
call esi
mov ebx, dword [esp + 0x150]
mov ebp, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x44]
push ebx
push ecx
call ebp
test eax, eax
je 0x1000a138
push 0x30
call esi
add esp, 4
lea edx, [esp + 0x20]
push edx
push edi
call dword [esp + 0x24]
test eax, eax
je 0x1000a13e
lea eax, [esp + 0x44]
push ebx
push eax
call ebp
test eax, eax
jne 0x1000a117
mov ebx, dword [esp + 0x28]
jmp 0x1000a142
mov ebx, dword [esp + 0x10]
push 0x30
call esi
add esp, 4
push edi
call dword [esp + 0x1c]
push 0x30
call esi
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret
Function at 0x1000bae0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov al, 0x65
push ebx
mov byte [ebp - 0x27], al
mov byte [ebp - 0x24], al
mov al, 0x6c
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ecx], 0x1001b32c
mov byte [ebp - 0x28], 0x6b
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x23], al
mov byte [ebp - 0x22], 0x33
mov byte [ebp - 0x21], 0x32
mov byte [ebp - 0x20], 0x2e
mov byte [ebp - 0x1f], 0x64
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov al, 0x65
mov cl, 0x74
mov byte [ebp - 0x18], 0x43
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], cl
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0x45
mov byte [ebp - 0x11], 0x76
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], 0x6e
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xd], 0x41
mov byte [ebp - 0xc], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push esi
mov dword [esi + 4], ecx
call fcn.10002e30
push 0
push 0
push 1
push 0
call dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000be30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x40
lea eax, [esp + 8]
lea edx, [ecx + 8]
push ebx
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 4]
push 0xf003f
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000bfe1
push eax
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push esi
lea edx, [esp + 0x20]
push ecx
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000be8e
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 8]
test eax, eax
lea ebx, [ecx + 1]
jbe 0x1000bfe1
cmp ebx, 1
jbe 0x1000bfe1
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push edi
push str.LocalReAlloc
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.LocalAlloc
push str.KERNEL32.dll
mov dword [esp + 0x38], eax
call esi
push eax
call edi
mov ebp, ebx
imul ebp, dword [esp + 0x10]
add ebp, 0xe
push ebp
push 0x40
call eax
mov ecx, ebp
mov edx, eax
mov esi, ecx
xor eax, eax
mov edi, edx
mov dword [esp + 0x24], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
push ebx
and ecx, 3
inc edx
rep stosb byte es:[edi], al
mov byte [edx - 1], 0x8c
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x50]
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
mov byte [edx + 0xc], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x20], esi
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x1000bfbd
mov edx, dword [esp + 0x24]
add edx, 0xd
mov dword [esp + 0x1c], edx
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x38]
push 0
push eax
push esi
push ecx
push edx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jb 0x1000bf49
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x24]
push 0x42
push ebp
push edx
call dword [esp + 0x3c]
pop edi
mov esi, eax
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x1000c410
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x1000c450
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 2
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x1000c7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10019e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
push edi
mov al, byte [esi]
lea ecx, [esp + 0x14]
push eax
call fcn.1000c280
lea ecx, [esi + 1]
add esi, 0xd
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], esi
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
test ebp, ebp
jbe 0x1000c8da
test ebx, ebx
jbe 0x1000c882
lea esi, [ebx + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x3c]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.1000c340
test eax, eax
je 0x1000c8d1
add dword [esp + 0x38], ebx
lea esi, [ebp + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x3c]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, ebp
mov edi, edx
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.1000c3a0
test eax, eax
je 0x1000c8d1
mov ecx, dword [esp + 0x10]
call fcn.1000c540
jmp 0x1000c8da
mov ecx, dword [esp + 0x10]
call fcn.1000c520
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.1000c2e0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x1000c940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10019e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov al, byte [ebx]
mov dword [esp + 0xc], ecx
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.1000c280
lea ecx, [ebx + 1]
add ebx, 0xd
mov dword [esp + 0x30], 0
mov esi, dword [ecx]
mov dword [esp + 0x1c], esi
mov ebp, dword [ecx + 4]
mov dword [esp + 0x20], ebp
mov eax, dword [ecx + 8]
test eax, eax
jbe 0x1000ca6a
test ebp, ebp
jbe 0x1000ca6a
test esi, esi
jle 0x1000ca04
lea edi, [esi + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.1000c340
test eax, eax
jne 0x1000c9f1
mov ecx, dword [esp + 0x10]
call fcn.1000c520
jmp 0x1000ca6a
mov edx, dword [esp + 0x1c]
push ebp
add ebx, edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ebp, dword [esp + 0x24]
add esp, 4
lea esi, [ebp + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, ebx
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, ebp
mov edi, edx
mov eax, ecx
add ebx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], edx
call fcn.1000c410
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x1000ca58
call fcn.1000c540
jmp 0x1000ca5d
call fcn.1000c520
mov ecx, dword [esp + 0x38]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.1000c2e0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4