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

Disassembly:
mov eax, 0x1004829a
call fcn.1000cf04
sub esp, 0x124
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x12c], edi
call fcn.10040d65
cmp eax, edi
mov dword [ebp - 0x128], eax
je 0x10044503
lea eax, [ebp - 0x128]
push eax
mov ecx, esi
call fcn.10040d76
cmp eax, edi
je 0x100444fb
mov edx, dword [eax]
push edi
push edi
push 0xfffffffffffffffc
push edi
mov ecx, eax
call dword [edx + 0xc]
cmp dword [ebp - 0x128], edi
jne 0x100444dd
cmp dword [esi + 0x54], edi
je 0x10044618
cmp dword [esi + 0x68], edi
jne 0x10044516
jmp fcn.10030667
push str.Software_
lea ecx, [ebp - 0x11c]
call fcn.10003df1
push dword [esi + 0x54]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], edi
call fcn.100040b8
push 0x1004aea8
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.10004051
push dword [esi + 0x68]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.10004051
add esp, 0x18
mov ecx, dword [ebp - 0x130]
add ecx, 0xfffffff0
mov dword [ebp - 4], 3
call fcn.1000398e
lea eax, [ebp - 0x124]
push eax
mov esi, SysReAllocStringLen
push esi
call fcn.100442a6
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100445e1
push 0x104
lea eax, [ebp - 0x118]
push eax
push edi
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x100445d5
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.100442a6
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x124]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x124]
add ecx, 0xfffffff0
call fcn.1000398e
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.1000398e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.1000cef6
leave
ret
Function at 0x10045071
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x10048425
call fcn.1000cf04
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
mov dword [ebp - 0x10], esp
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x10045192
cmp eax, dword [edi + 0xc]
jge 0x10045192
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x100450e6
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x1004517b
cmp dword [ebp + 0xc], ebx
je 0x1004517b
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1004512b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_LocalAlloc]
jmp 0x1004513b
push 0x10
mov dword [ebp - 4], ebx
call fcn.10044ccc
cmp eax, ebx
je 0x100450fe
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x10045100
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.10044f46
jmp 0x100450cf
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.kernel32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x1004514d
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call fcn.1000d330
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.1000daa0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1004518d
cmp ecx, dword [esi + 8]
jge 0x1004518d
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 0x14]
jmp 0x10045193
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x10045894
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x100484b4
call fcn.1000cf04
mov eax, 0x1024
call fcn.1000c560
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x102c], edi
cmp dword [ecx + 0x54], edi
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x1014], edx
je 0x100459cb
push eax
call fcn.1000d330
cmp eax, edi
mov dword [ebp - 0x1020], eax
jne 0x100458ff
push dword [ebp - 0x1014]
jmp 0x100459fd
call fcn.10034457
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1018], ebx
lea eax, [ebp - 0x1024]
push eax
push edi
lea eax, [ebp - 0x102c]
push eax
push edi
push esi
push dword [ebp - 0x1020]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
mov dword [ebp - 0x1028], eax
jne 0x10045988
push dword [ebp - 0x1024]
lea ecx, [ebp - 0x1018]
call fcn.10003c5f
lea ecx, [ebp - 0x1024]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push edi
push dword [ebp - 0x1030]
push dword [ebp - 0x1020]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x1028], eax
call fcn.10003f1e
mov ebx, dword [ebp - 0x1018]
push dword [ebp - 0x1020]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1028], edi
mov ecx, dword [ebp - 0x101c]
jne 0x100459be
lea eax, [ebp - 0x1018]
push eax
call fcn.10003f43
lea ecx, [ebx - 0x10]
call fcn.1000398e
mov eax, dword [ebp - 0x101c]
jmp 0x10045a06
push dword [ebp - 0x1014]
call fcn.10003df1
jmp 0x100459ae
cmp edx, edi
jne 0x100459d9
mov dword [ebp - 0x1014], 0x1004aa90
push dword [ecx + 0x68]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push dword [ebp - 0x1014]
push esi
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, ebx
call fcn.10003df1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
leave
ret 0x10
Function at 0x10001310
Capabilities:
Access peb ldr_data
Get ntdll base address
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ff57
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x100141c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, vtable.CBuffer.0
mov dword [ebp - 0x1a4], esi
mov dword [esi], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 2
push eax
push 0x202
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
lea ecx, [esi + 0x54]
push ecx
mov dword [esi + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xfa000
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x50], ebx
call fcn.10002db4
mov dword [esi + 0x68], eax
add esp, 4
mov byte [esi + 0x3c], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10002dbf
mov esp, ebp
pop ebp
ret
Function at 0x100013f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
lea eax, [esi + 0x54]
push edi
mov byte [esi + 0x3c], bl
cmp dword [eax], ebx
je 0x10001457
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x38]
push 4
lea edx, [ebp - 4]
push edx
push 0x80
push 0xffff
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x190
push ecx
call edi
mov edx, dword [esi + 0x34]
push 0x190
push edx
call edi
mov eax, dword [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x10001486
push eax
call edi
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x10001493
push eax
call edi
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x100014a0
push eax
call edi
mov dword [esi + 0x4c], ebx
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp eax, ebx
je 0x100014b6
push 0x8000
push ebx
push eax
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x100014cf
push 0x8000
push ebx
push eax
call edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x100014e8
push 0x8000
push ebx
push eax
call edi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x1000150a
push eax
call fcn.100034a9
add esp, 4
mov dword [esi + 0x68], ebx
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], vtable.CBuffer.0
cmp eax, ebx
je 0x10001521
push 0x8000
push ebx
push eax
call edi
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], vtable.CBuffer.0
cmp eax, ebx
je 0x10001538
push 0x8000
push ebx
push eax
call edi
mov dword [esi], vtable.CBuffer.0
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x1000154e
push 0x8000
push ebx
push esi
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001bc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
cmp eax, 0xfa000
jl 0x10001c28
mov edi, edi
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x10001c6c
mov eax, dword [edi + 0x38]
push 0
push 0xfa000
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001c08
inc ebx
cmp ebx, 0xf
jl 0x10001be2
cmp ebx, 0xf
je 0x10001c61
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
sub eax, 0xfa000
add esi, 0xfa000
mov dword [ebp - 8], eax
cmp eax, 0xfa000
jge 0x10001be0
cmp dword [ebp - 8], 0
jle 0x10001c59
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x10001c6c
mov ecx, dword [ebp - 8]
mov edx, dword [edi + 0x38]
push 0
push ecx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001c51
inc ebx
cmp ebx, 0xf
jl 0x10001c30
cmp ebx, 0xf
je 0x10001c61
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x10001c64
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002050
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [eax]
sub esp, 0x14
cmp ecx, 4
ja case.default.0x1000205e
jmp dword [ecx*4 + 0x10002170]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], connect
jmp 0x100020ab
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], connect
jmp 0x100020ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], connect
jmp 0x100020ab
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], reloc.WS2_32.dll_closesocket
jmp 0x100020ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], htons
jmp 0x100020ab
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], connect
mov ecx, dword [eax + 1]
push ebx
mov ebx, dword [eax + 9]
push edi
mov edi, dword [eax + 5]
add eax, 0xd
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10002166
push esi
test edi, edi
je 0x1000211a
lea ebx, [edi + 2]
push ebx
call fcn.10002db4
push ebx
mov esi, eax
push 0
push esi
call fcn.10008b30
mov edx, dword [ebp - 4]
push edi
push edx
push esi
call fcn.1000bd10
add esp, 0x1c
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002152
mov edx, dword [ebp - 8]
add dword [ebp - 4], edi
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x10], edx
lea edi, [ebx + 2]
push edi
call fcn.10002db4
push edi
mov esi, eax
push 0
push esi
call fcn.10008b30
mov eax, dword [ebp - 4]
push ebx
push eax
push esi
call fcn.1000bd10
add esp, 0x1c
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp + 0xb], 3
test eax, eax
je 0x10002156
mov byte [ebp + 0xb], 2
mov eax, 1
lea ecx, [ebp + 0xb]
mov edx, esi
call fcn.10001df0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [eax]
sub esp, 0x14
cmp ecx, 4
ja case.default.0x1000219e
jmp dword [ecx*4 + 0x100022fc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], connect
jmp 0x100021eb
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], connect
jmp 0x100021eb
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], connect
jmp 0x100021eb
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], reloc.WS2_32.dll_closesocket
jmp 0x100021eb
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], htons
jmp 0x100021eb
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], connect
mov edx, dword [eax + 9]
mov ecx, dword [eax + 1]
push ebx
mov ebx, dword [eax + 5]
push esi
mov dword [ebp - 0x14], ecx
lea esi, [eax + 0xd]
test edx, edx
je 0x100022d7
test ebx, ebx
je 0x100022d7
push edi
test ecx, ecx
jle 0x1000226f
lea eax, [ecx + 2]
push eax
call fcn.10002db4
mov edi, eax
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
push 0
push edi
call fcn.10008b30
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call fcn.1000bd10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
add esp, 0x1c
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp + 8]
test eax, eax
jne 0x100022df
mov ecx, dword [ebp - 8]
add esi, dword [ebp - 0x14]
push edi
mov dword [edx + 0x10], ecx
call fcn.100034a9
add esp, 4
lea eax, [ebx + 2]
push eax
call fcn.10002db4
mov edi, eax
lea eax, [ebx + 2]
push eax
push 0
push edi
call fcn.10008b30
push ebx
push esi
push edi
call fcn.1000bd10
add esp, 0x1c
add esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
push 1
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
lea ecx, [ebp + 0xb]
mov edx, esi
mov eax, 1
mov byte [ebp + 0xb], 3
je 0x100022c8
mov byte [ebp + 0xb], 2
call fcn.10001df0
push edi
call fcn.100034a9
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
lea ecx, [ebp - 1]
mov byte [ebp - 1], 2
call fcn.10001df0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [eax]
sub esp, 0x14
cmp ecx, 4
ja case.default.0x1000231e
jmp dword [ecx*4 + 0x1000247c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], connect
jmp 0x1000236b
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], connect
jmp 0x1000236b
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], connect
jmp 0x1000236b
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], reloc.WS2_32.dll_closesocket
jmp 0x1000236b
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], htons
jmp 0x1000236b
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], connect
mov edx, dword [eax + 9]
mov ecx, dword [eax + 1]
push ebx
mov ebx, dword [eax + 5]
push esi
mov dword [ebp - 0x14], ecx
lea esi, [eax + 0xd]
test edx, edx
je 0x10002457
test ebx, ebx
je 0x10002457
push edi
test ecx, ecx
jle 0x100023ef
lea eax, [ecx + 2]
push eax
call fcn.10002db4
mov edi, eax
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
push 0
push edi
call fcn.10008b30
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call fcn.1000bd10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
add esp, 0x1c
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp + 8]
test eax, eax
jne 0x1000245f
mov ecx, dword [ebp - 8]
add esi, dword [ebp - 0x14]
push edi
mov dword [edx + 0x10], ecx
call fcn.100034a9
add esp, 4
lea eax, [ebx + 2]
push eax
call fcn.10002db4
mov edi, eax
lea eax, [ebx + 2]
push eax
push 0
push edi
call fcn.10008b30
push ebx
push esi
push edi
call fcn.1000bd10
add esp, 0x1c
add esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
push 2
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
lea ecx, [ebp + 0xb]
mov edx, esi
mov eax, 1
mov byte [ebp + 0xb], 3
je 0x10002448
mov byte [ebp + 0xb], 2
call fcn.10001df0
push edi
call fcn.100034a9
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
lea ecx, [ebp - 1]
mov byte [ebp - 1], 2
call fcn.10001df0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [eax]
sub esp, 0x10
cmp ecx, 4
ja case.default.0x1000249e
jmp dword [ecx*4 + 0x10002618]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], connect
jmp 0x100024eb
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], connect
jmp 0x100024eb
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], connect
jmp 0x100024eb
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], reloc.WS2_32.dll_closesocket
jmp 0x100024eb
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], htons
jmp 0x100024eb
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], connect
mov edx, dword [eax + 9]
mov ecx, dword [eax + 1]
push ebx
mov ebx, dword [eax + 5]
push edi
mov dword [ebp - 0x10], ecx
lea edi, [eax + 0xd]
test edx, edx
je 0x100025f4
test ebx, ebx
je 0x100025f4
push esi
test ecx, ecx
jle 0x1000256f
lea eax, [ecx + 2]
push eax
call fcn.10002db4
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push 0
push esi
call fcn.10008b30
mov eax, dword [ebp - 0x10]
push eax
push edi
push esi
call fcn.1000bd10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
add esp, 0x1c
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp + 8]
test eax, eax
jne 0x100025fc
mov ecx, dword [ebp - 4]
add edi, dword [ebp - 0x10]
push esi
mov dword [edx + 0x10], ecx
call fcn.100034a9
add esp, 4
lea eax, [ebx + 2]
push eax
call fcn.10002db4
mov esi, eax
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.10008b30
push ebx
push edi
push esi
call fcn.1000bd10
add ebx, edi
push ebx
call fcn.10003692
fnstcw word [ebp - 2]
movzx eax, word [ebp - 2]
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x10]
add esp, 0x20
or eax, 0xc00
push 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
fldcw word [ebp - 8]
push ecx
push 4
push 0
push esi
push edx
fistp qword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
fldcw word [ebp - 2]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
lea ecx, [ebp + 0xb]
mov edx, edi
mov eax, 1
mov byte [ebp + 0xb], 3
je 0x100025e5
mov byte [ebp + 0xb], 2
call fcn.10001df0
push esi
call fcn.100034a9
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
lea ecx, [ebp - 1]
mov byte [ebp - 1], 2
call fcn.10001df0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002630
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ecx]
cmp eax, 4
ja case.0x1000263c.2
jmp dword [eax*4 + 0x1000269c]
mov dword [esi + 0x10], connect
jmp 0x1000266e
mov dword [esi + 0x10], connect
jmp 0x1000266e
mov dword [esi + 0x10], reloc.WS2_32.dll_closesocket
jmp 0x1000266e
mov dword [esi + 0x10], htons
jmp 0x1000266e
mov dword [esi + 0x10], connect
mov eax, dword [esi + 0x10]
add ecx, 2
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
lea ecx, [ebp - 1]
mov edx, esi
mov eax, 1
mov byte [ebp - 1], 3
je 0x10002692
mov byte [ebp - 1], 2
call fcn.10001df0
mov esp, ebp
pop ebp
ret
Function at 0x10002760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
push 0xf003f
xor esi, esi
push esi
lea ecx, [eax + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002940
push eax
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 8]
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 4]
push ecx
push esi
push esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x100027c1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x20]
lea edi, [edi + edi + 6]
test eax, eax
je 0x10002940
cmp edi, 1
jbe 0x10002940
mov ebx, edi
imul ebx, eax
add ebx, 0xe
push ebx
push 0x40
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x100027b6
push ebx
push 0
push esi
call fcn.10008b30
mov cl, byte [ebp - 0x38]
mov byte [esi], 0
mov eax, dword [ebp - 4]
mov dword [esi + 1], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 5], edi
mov dword [esi + 9], eax
push edi
mov byte [esi + 0xd], cl
call fcn.10002db4
xor ebx, ebx
add esp, 0x10
mov esi, eax
cmp dword [ebp - 4], ebx
jbe 0x1000291b
mov edx, dword [ebp - 0x1c]
add edx, 0xd
mov dword [ebp - 0x10], edx
lea esp, [esp]
push edi
push 0
push esi
call fcn.10008b30
mov ecx, dword [ebp - 8]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [ebp - 0xc]
push edx
xor eax, eax
push 0x20019
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002891
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x100028c7
push 0x100123d8
call fcn.10003773
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x100028db
mov dword [ebp - 0x14], 1
push 0x100123e0
jmp 0x100028e0
push 0x100123e4
call fcn.10003773
mov eax, dword [ebp - 0xc]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [eax], ecx
lea ecx, [edx + edx]
push ecx
add eax, 4
push esi
push eax
call fcn.1000bd10
add dword [ebp - 0x10], edi
inc ebx
add esp, 0xc
cmp ebx, dword [ebp - 4]
jb 0x10002840
push esi
call fcn.100034a9
mov edx, dword [ebp - 8]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
push 0x42
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4