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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, 0x100
cmp edi, eax
ja 0x44c61d
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x44c61d
push esi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x44c627
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x44d057
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
cmp dword [ecx + 0x7c], 0
mov esi, ecx
je 0x44d09f
push dword [ebp + 8]
call fcn.0045265b
mov esi, eax
test esi, esi
jne 0x44d079
xor eax, eax
jmp 0x44d0ca
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
sbb eax, eax
neg eax
jmp 0x44d0ca
push dword [ebp + 0x10]
push 0x458248
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x10]
push dword [esi + 0x90]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44e6f2
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
je 0x44e788
mov ebp, 0x18000000
push ebx
call fcn.00443c9e
mov esi, eax
test esi, esi
je 0x44e779
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x44e779
push ebx
push eax
call fcn.0044e546
test eax, eax
je 0x44e779
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp dword [esp + 0x14], 0
jne 0x44e762
mov ecx, eax
and ecx, ebp
cmp ecx, 0x10000000
jne 0x44e75b
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0x24], 2
jmp 0x44e779
cmp dword [esp + 0x14], 0
je 0x44e779
test ebp, eax
jne 0x44e779
test byte [esi + 0x24], 2
je 0x44e779
push 4
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x24], 0xfd
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x44e712
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x451068
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x451103
call fcn.0043146c
sub esp, 4
xor eax, eax
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.CNoTrackObject.0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov esi, ecx
push 0xa
lea ecx, [esi + 0x30]
call fcn.00440e5d
lea ecx, [esi + 0x4c]
push 0xa
mov byte [ebp - 4], 1
call fcn.00440e5d
lea ecx, [esi + 0x68]
push 0xa
mov byte [ebp - 4], 2
call fcn.004409c9
mov byte [ebp - 4], 3
mov eax, esi
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x441dbf
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x451a91
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x451cc6
call fcn.0043146c
sub esp, 0x128
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
push esi
push edi
call fcn.0044d030
mov dword [ebp - 0x24], eax
test eax, eax
je 0x451ba1
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0044d045
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00441779
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00441779
push 5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [esi]
push ecx
mov ecx, esi
mov edi, dword [eax + 0x6c]
call edi
push 4
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x451b44
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push eax
push 0x80000000
call fcn.00451cd8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x134]
push eax
push ecx
push dword [ebp - 0x10]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x451b44
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x451b82
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push 0x80000000
call fcn.00451cd8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x134]
push eax
push ecx
push dword [ebp - 0x14]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x451b82
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 0
call fcn.00451ca6
mov dword [ebp - 4], 0xffffffff
call fcn.00451cae
cmp dword [ebp - 0x24], 0
jne 0x451ac4
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x7c], 0
je 0x451c93
push str.Software_
lea ecx, [ebp - 0x10]
call fcn.0044194c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
push dword [eax + 0x7c]
call fcn.00441c0c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push dword [ecx + 0x90]
push 0x464da4
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00441b19
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push ecx
call fcn.00441b19
mov byte [ebp - 4], 5
call fcn.00451cb6
lea ecx, [ebp - 0x14]
mov esi, 0x80000001
push ecx
push esi
mov ecx, dword [ebp - 0x18]
call fcn.00451cd8
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x451c5a
push 0x104
lea eax, [ebp - 0x134]
push eax
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x451c51
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push eax
push esi
call fcn.00451cd8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x134]
push eax
push ecx
push dword [ebp - 0x14]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x451c7e
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 2
call fcn.00451cbe
mov dword [ebp - 4], 0xffffffff
call fcn.00451cd0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x451cd8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x451d98
call fcn.0043146c
sub esp, 0x110
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
push eax
mov ecx, dword [ebp + 0xc]
push dword [ecx]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x451d7c
push 0xff
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x451d59
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0044194c
push eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.00451cd8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
call fcn.00451da2
cmp dword [ebp - 0x10], 0
je 0x451d04
cmp dword [ebp - 0x10], 0x103
je 0x451d6b
cmp dword [ebp - 0x10], 0x3f2
jne 0x451d7c
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x45203d
Capabilities:
Allocate thread local storage

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], 4
mov dword [ecx + 8], 1
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x45206e
call fcn.0043ffd5
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x4521e7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x45228c
call fcn.0043146c
sub esp, 4
push ebx
push esi
push edi
mov edi, ecx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x452221
mov edx, dword [ebp + 8]
cmp dword [ebx + 8], edx
jg 0x4522e6
cmp dword [ebp + 0xc], 0
je 0x4522e6
test ebx, ebx
jne 0x452272
push 0x10
call fcn.0045200d
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x452258
mov ebx, esi
mov dword [esi], vtable.CNoTrackObject.0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov dword [esi], vtable.CThreadData.0
jmp 0x45225a
xor ebx, ebx
xor eax, eax
push ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
call fcn.00451fad
mov eax, dword [ebx + 0xc]
lea esi, [edi + 0xc]
test eax, eax
jne 0x45229f
mov eax, dword [esi]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4522ae
push 2
mov ecx, dword [esi]
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x4522bc
call fcn.0043ffd5
mov eax, dword [ebx + 8]
mov ecx, dword [esi]
sub ecx, eax
shl ecx, 2
shl eax, 2
push ecx
push 0
add eax, dword [ebx + 0xc]
push eax
call fcn.00431920
add esp, 0xc
mov ecx, dword [esi]
mov dword [ebx + 8], ecx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0xc]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret 8

Function at 0x452353
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, ecx
cmp dword [esi + 8], 1
jle 0x4523d4
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 0xc], 0
je 0x4523a8
mov eax, dword [ebp - 0xc]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
cmp dword [edx + eax + 4], ecx
je 0x4523a8
mov eax, dword [esi + 0xc]
cmp dword [eax + ebx], 0
je 0x4523c2
mov dword [ebp - 4], 0
jmp 0x4523c2
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x4523b8
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [esi + 8], eax
jg 0x452381
cmp dword [ebp - 4], 0
je 0x452402
push esi
lea ecx, [edi + 0x14]
call fcn.00451fc0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x4523f8
push 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x452464
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x4524a2
cmp dword [0x469e80], 0
jne 0x452495
mov ecx, 0x469e88
test ecx, ecx
je 0x45248b
call fcn.0045203d
mov dword [0x469e80], eax
jmp 0x452495
mov dword [0x469e80], 0
mov ecx, dword [0x469e80]
call fcn.0045207c
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x469e80]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4524c2
cmp dword [eax + 8], edi
jle 0x4524c2
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4524c4
xor edi, edi
test edi, edi
jne 0x4524dc
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x469e80]
call fcn.004521e7
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x452ddc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x452e10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
cmp eax, 1
sbb eax, eax
neg eax
jmp 0x452e5c
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x452e5a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x452e5a
mov eax, 1
test esi, esi
je 0x452e5c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407701
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x407710
pop dword [ebp - 0x30]
mov eax, 0x407710
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x91430bad
sub dword [ebp - 0x40], 0x42f0c662
mov dword [ebp - 0x3c], 0x26c40ac0
add dword [ebp - 0x3c], 0xb6f4185
mov dword [ebp - 0x38], 0x5bf9c65
add dword [ebp - 0x38], 0x468ca7c9
mov dword [ebp - 0x34], 0x49e6ae6d
sub dword [ebp - 0x34], 0x49e6ae6d
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x5d68b345
add dword [ebp - 0x40], 0x1709b611
mov dword [ebp - 0x3c], 0xfc64f6a
sub dword [ebp - 0x3c], 0xce59edf5
mov dword [ebp - 0x38], 0x2146b0eb
sub dword [ebp - 0x38], 0xbdd7447f
mov dword [ebp - 0x34], 0xb2cb93c1
sub dword [ebp - 0x34], 0xb2cb93c1
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3550c
push 0
call eax
mov ecx, 0x2bdbc454
add ecx, 0xd4247c4a
xor edx, edx
add edx, eax
mov edi, 0x40ec00
add edi, dword [ebp - 0x30]
mov esi, 0xa159ed7b
add esi, 0x781fc95c
sub dword [ebp - 8], 0xf9cb450c
mov ebx, dword [edi]
xor ebx, esi
add dword [ebp - 8], 0x5b957fb8
mov dword [edx], ebx
add edx, 4
add edi, 0x99c2523e
add edi, 0x663dadc6
loop 0x40781f
add eax, 0xf54b
xor ebx, ebx
add ebx, eax
add eax, 0xca5731c4
sub eax, 0xca5731bf
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x14000
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
movzx edx, word [ebp - 0x18]
mov dword [ebp - 4], edx
jmp 0x1402f
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x14047
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x14045
jmp 0x14047
jmp 0x14026
cmp dword [ebp - 4], 0
jne 0x14057
mov eax, 0xc0000001
jmp 0x14147
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 1]
push edx
push str.Device_s
push 0xff
push 0x13010
call sub.ntoskrnl.exe__snprintf
add esp, 0x10
push 0x13010
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea ecx, [ebp - 0xc]
push ecx
push section..data
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 1]
push ecx
push str.___s
push 0xff
push 0x13010
call sub.ntoskrnl.exe__snprintf
add esp, 0x10
push 0x13010
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0xc]
push eax
push 0x13008
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlFreeAnsiString]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x22
push section..data
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x1410e
mov eax, dword [ebp - 0x1c]
jmp 0x14147
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
or edx, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], edx
push section..data
push 0x13008
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x14145
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x1c]
jmp 0x14147
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x473050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x45000]
push edi
jmp 0x47306a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x473071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473060
mov eax, 1
add ebx, ebx
jne 0x473083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x473094
jne 0x4730b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730b3
dec eax
add ebx, ebx
jne 0x4730a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x473078
add ebx, ebx
jne 0x4730af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x473105
xor ecx, ecx
sub eax, 3
jb 0x4730cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47313a
sar eax, 1
mov ebp, eax
jmp 0x4730d6
add ebx, ebx
jne 0x4730d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730a4
inc ecx
add ebx, ebx
jne 0x4730e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730a4
add ebx, ebx
jne 0x4730f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4730e6
jne 0x473102
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4730e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x473124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x473116
jmp 0x473066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x473124
add edi, ecx
jmp 0x473066
pop esi
mov edi, esi
mov ecx, 0x2046
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x473142
cmp byte [edi], 0x11
jne 0x473142
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x473147
lea edi, [esi + 0x6f000]
mov eax, dword [edi]
or eax, eax
je 0x4731b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x79398]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x793c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x473174
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x793c4]
or eax, eax
je 0x4731b0
mov dword [ebx], eax
add ebx, 4
jmp 0x473191
call dword [esi + 0x793d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4731e7
cmp al, 0xef
ja 0x4731da
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4731bc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4731c9
mov ebp, dword [esi + 0x793c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47321b
sub esp, 0xffffff80
jmp 0x432105
Function at 0x401084
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
test edi, edi
je 0x40109c
push edi
call fcn.004020e0
mov esi, eax
pop ecx
inc esi
lea eax, [ebp + 0x14]
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4010cf
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4010cf
xor eax, eax
jmp 0x4010f8
test edi, edi
je 0x4010eb
push esi
push edi
push 1
pop esi
push esi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4010ed
xor esi, esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x4010fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401135
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401135
xor eax, eax
jmp 0x40115c
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401151
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40168e
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x407288
call fcn.00401f6c
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x4017b0
mov ecx, dword [ebp - 0x18]
call fcn.00401953
push ebx
push ebx
push 1
push 0x64
push dword [ebp - 0x18]
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
mov dword [ebp - 0x14], ebx
mov esi, 0x20006
lea ecx, [ebp - 0x14]
push esi
push str.AppID
push 0x80000000
mov dword [ebp - 4], ebx
call fcn.00401b56
mov edi, eax
cmp edi, ebx
je 0x401704
cmp dword [ebp - 0x14], ebx
je 0x4017ae
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4017ae
mov dword [ebp - 0x10], ebx
push esi
push str.BF5D98E1_136A_4EE6_BFFE_3235E169CD9E
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401b56
mov edi, eax
cmp edi, ebx
jne 0x401791
push str.LocalService
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0xc], ebx
je 0x40177c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x40a26c
push edi
call esi
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.LocalService
push dword [ebp - 0x10]
call edi
mov ebx, str._Service
push ebx
call esi
inc eax
push eax
push ebx
push 1
push 0
push str.ServiceParameters
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x18]
call fcn.0040189e
xor ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4017a4
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4017ae
push dword [ebp - 0x14]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40189e
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401041
test eax, eax
jne 0x40194b
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x4018dd
add edi, 0x84
push esi
push edi
push str.Couldnt_open_service_manager
jmp 0x401934
lea eax, [ebp - 0x104]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push str.RPCSS
push esi
lea eax, [ebp - 0x104]
push 0x40a050
push eax
push 1
push 2
push 0x10
add edi, 0x84
push 0xf01ff
push str.Network_Protect_Provider
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
jne 0x40193f
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push str.Couldnt_create_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40194e
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret