joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf20
Capabilities:
Get hostname

Disassembly:
push ecx
push esi
push 0x310
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40cf40
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ecx
ret 4
mov al, byte [esp + 0xc]
mov dword [esi], 0x310
test al, 1
je 0x40cf77
mov ecx, dword [0x41ecb8]
lea eax, [esi + 8]
mov dword [esi + 8], ecx
mov edx, dword [0x41ecbc]
mov dword [eax + 4], edx
mov ecx, dword [0x41ecc0]
mov dword [eax + 8], ecx
mov edx, dword [0x41ecc4]
mov dword [eax + 0xc], edx
jmp 0x40cfc5
test al, 2
je 0x40cfef
mov ecx, dword [0x41ecc8]
lea eax, [esi + 8]
mov dword [esi + 8], ecx
mov edx, dword [0x41eccc]
mov dword [eax + 4], edx
mov ecx, dword [0x41ecd0]
mov dword [eax + 8], ecx
mov edx, dword [0x41ecd4]
mov dword [eax + 0xc], edx
lea eax, [esi + 0x60]
push eax
call fcn.00410da0
lea ecx, [esp + 4]
lea edx, [esi + 0x90]
push ecx
push edx
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push edi
push 0
push 0
push 0
push 0
push 0x310
push esi
push 0x82024
call fcn.0040f110
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 0x57
pop esi
pop ecx
ret 4
Function at 0x40d230
Capabilities:
Get file size
Persist via windows service
Set registry value
Write file on windows

Disassembly:
sub esp, 0x48
mov al, byte [0x428fc0]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x18], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x19]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
mov ebp, 1
push 0x80
push ebp
stosb byte es:[edi], al
mov edi, dword [esp + 0x68]
push 0
push 3
push 0xc0000000
push edi
mov dword [esp + 0x30], 0
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d2aa
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d2aa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x40d2db
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, 0x40
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x40
push edx
push esi
call ebp
dec ebx
jne 0x40d2c2
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
add esp, 4
lea ecx, [esp + 0x5c]
lea eax, [eax + eax + 4]
push ecx
push 0x427278
push connect
mov dword [esp + 0x1c], eax
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40d33d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
push edx
push edi
push ebp
push 0
push 0x427260
push eax
call esi
test eax, eax
jne 0x40d332
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x5c]
push edx
push 0x427234
push connect
call ebx
test eax, eax
jne 0x40d37a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
push eax
push edi
push ebp
push 0
push 0x427260
push ecx
call esi
test eax, eax
jne 0x40d36f
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x5c]
push eax
push 0x427234
push connect
call ebx
test eax, eax
jne 0x40d3b6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
push ecx
push edi
push ebp
push eax
push 0x427260
push edx
call esi
test eax, eax
jne 0x40d3ab
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
Function at 0x40d440
Capabilities:
Get file size
Persist via windows service
Set registry value
Write file on windows

Disassembly:
sub esp, 0x48
mov al, byte [0x428fc0]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x18], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x19]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, 1
push 0x80
stosb byte es:[edi], al
mov edi, dword [esp + 0x64]
push ebp
push 0
push 3
push 0xc0000000
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d5ae
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x40d4c5
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, 0x40
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x40
push edx
push esi
call ebp
dec ebx
jne 0x40d4ac
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
add esp, 4
lea ecx, [esp + 0x5c]
lea eax, [eax + eax + 4]
push ecx
push 0x4265e8
push connect
mov dword [esp + 0x1c], eax
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40d527
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
push edx
push edi
push ebp
push 0
push 0x427260
push eax
call esi
test eax, eax
jne 0x40d51c
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x5c]
push edx
push 0x4272d0
push connect
call ebx
test eax, eax
jne 0x40d564
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
push eax
push edi
push ebp
push 0
push 0x427260
push ecx
call esi
test eax, eax
jne 0x40d559
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x5c]
push eax
push 0x4272d0
push connect
call ebx
test eax, eax
jne 0x40d5a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
push ecx
push edi
push ebp
push eax
push 0x427260
push edx
call esi
test eax, eax
jne 0x40d595
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x40d4cc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 4
Function at 0x40d950
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ed28
push 0x40a43e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x24], esi
push 0x278
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, esi
jne 0x40d9a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebx], 0x278
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
push ecx
call fcn.004129c0
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, esi
jne 0x40d9d4
mov dword [ebp - 0x1c], 8
jmp 0x40da5e
lea eax, [edi + 2]
cmp word [eax], 0x3a
jne 0x40d9ee
push edi
push 0x427208
push 0x12b
lea edx, [ebx + 0x20]
push edx
jmp 0x40d9fd
push eax
push 0x4271f4
push 0x12b
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x40da25
and esi, 0xfffffffe
mov dword [ebp - 0x20], esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
push 0
push 0x278
push ebx
push 0x8221c
call fcn.0040f110
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40da5e
cmp esi, 0xffffffff
je 0x40da5e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40da5e
or esi, 1
mov dword [ebp - 0x20], esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
call fcn.0040da8d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e890
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
push 0x4263ec
push connect
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40e8ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x2000
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40ea02
mov ecx, 0x800
xor eax, eax
mov edi, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0x2000
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push ebp
push 0x4263d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e9d1
push 0x2000
call sub.MFC42u.DLL_operatornew
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x40e9f9
push esi
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
push edi
call dword [sym.imp.MSVCRT.dll__wcslwr]
mov ebx, dword [esp + 0x30]
add esp, 0xc
cmp ebx, ebp
je 0x40e966
push 0x4274c4
push edi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x40e981
jmp 0x40e979
push 0x4274b4
push edi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x40e981
mov dword [esp + 0x14], 1
push edi
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x40e9f9
cmp ebx, ebp
push esi
je 0x40e99e
call fcn.004121a0
jmp 0x40e9a3
call fcn.00412230
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 0x20]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push edx
push ebp
push 0x4263d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
Function at 0x40fad0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ed68
push 0x40a43e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x55c
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40fb1c
mov eax, 0x57
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 0x14]
cmp esi, 0x40
jbe 0x40fb3c
mov eax, 0x57
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 0xffffffff
je 0x40fb5e
test cl, 1
je 0x40fb5e
not eax
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, 0x150
xor eax, eax
lea edi, [ebp - 0x568]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x568], 0x540
mov dword [ebp - 0x55c], esi
test esi, esi
je 0x40fb9a
mov ecx, esi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x558]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [ebp - 0x560], ecx
mov dword [ebp - 4], 0
push ebx
call fcn.004129c0
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x40fbcc
mov dword [ebp - 0x1c], 8
jmp 0x40fce7
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x40fbe9
push ebx
push 0x427208
push 0x12b
lea edx, [ebp - 0x4d8]
push edx
jmp 0x40fbfb
push eax
push 0x4271f4
push 0x12b
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0x4d8]
push ecx
lea edx, [ebp - 0x280]
push edx
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
call esi
push 0x4275d4
lea eax, [ebp - 0x280]
push eax
mov edi, dword [sym.imp.MSVCRT.dll_wcscat]
call edi
add esp, 0x10
push 0
push 0
push 0
push 0
push 0x540
lea ecx, [ebp - 0x568]
push ecx
push 0x82198
call fcn.0040f110
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40fc65
lea edx, [ebp - 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40fcd3
push ebx
lea eax, [ebp - 0x280]
push eax
call esi
push 0x4275d4
lea ecx, [ebp - 0x280]
push ecx
call edi
add esp, 0x10
xor esi, esi
mov dword [ebp - 0x56c], esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, 0x64
jge 0x40fcd3
push 1
push ebx
lea edx, [ebp - 0x280]
push edx
call edi
test eax, eax
jne 0x40fccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0x20
je 0x40fcbb
cmp eax, 5
je 0x40fcbb
cmp esi, 3
jg 0x40fcd3
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov dword [ebp - 0x56c], esi
jmp 0x40fc8e
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x40fce7
test al, 1
je 0x40fce7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
call fcn.0040fd0c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40fec0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov al, byte [0x428fc0]
push ebx
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x26c]
mov edx, dword [esp + 0x274]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea esi, [ebx + 0x80]
mov ecx, 0x10
xor eax, eax
mov edi, esi
mov dword [ebx], 0x68636766
mov dword [ebx + 4], 0x81
mov dword [ebx + 0xc], 0x40
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0x82020
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x270]
mov eax, dword [esp + 0x278]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x27c]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x280]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x284]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x288]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x28c]
mov dword [esi + 0x24], eax
mov dword [esi], 0x40
mov dword [esi + 4], 2
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
xor eax, eax
mov cl, byte [ebx + eax + 0x60]
mov dl, byte [eax + 0x41ec98]
xor cl, dl
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x20
jl 0x40ff7b
lea edx, [esp + 0x10]
push 0x20
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00413cb0
push 0
push 0x40
push esi
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.00413db0
call fcn.0040f9b0
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], edx
mov edx, dword [esp + 0x268]
mov ecx, dword [esp + 0x264]
lea eax, [esp + 0xc]
push edx
push eax
push 0x81
push ebx
push 0xc1
push ebx
push 0x82020
push ecx
call fcn.00412970
test eax, eax
je 0x40fffb
mov eax, dword [ebx + 8]
pop edi
pop esi
pop ebx
add esp, 0x254
ret 0x2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x254
ret 0x2c
Function at 0x410010
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov al, byte [0x428fc0]
push ebx
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x26c]
mov edx, dword [esp + 0x274]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ebx, [esi + 0x80]
mov ecx, 0x10
xor eax, eax
mov edi, ebx
mov dword [esi], 0x68636766
mov dword [esi + 4], 0x81
mov dword [esi + 0xc], 0x40
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0x82020
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x270]
mov dword [ebx], 0x40
mov dword [ebx + 4], 1
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov cl, byte [esi + eax + 0x60]
mov dl, byte [eax + 0x41ec98]
xor cl, dl
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x20
jl 0x41008d
lea edx, [esp + 0x10]
push 0x20
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00413cb0
push 0
push 0x40
push ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00413db0
call fcn.0040f9b0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x268]
mov ecx, dword [esp + 0x264]
lea eax, [esp + 0xc]
push edx
push eax
push 0x81
push esi
push 0xc1
push esi
push 0x82020
push ecx
call fcn.00412970
test eax, eax
je 0x41010d
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
add esp, 0x254
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x254
ret 0x14
Function at 0x410ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push eax
push 0x427278
push connect
call esi
test eax, eax
je 0x410f09
lea ecx, [esp + 4]
push ecx
push 0x427234
push connect
call esi
test eax, eax
je 0x410f09
lea edx, [esp + 4]
push edx
push 0x427234
push connect
call esi
test eax, eax
jne 0x410f39
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x427260
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x410f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push eax
push 0x4265e8
push connect
call esi
test eax, eax
je 0x410f89
lea ecx, [esp + 4]
push ecx
push 0x4272d0
push connect
call esi
test eax, eax
je 0x410f89
lea edx, [esp + 4]
push edx
push 0x4272d0
push connect
call esi
test eax, eax
jne 0x410fb9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x427260
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x4120c0
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push 0x360
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4120de
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ecx
ret
push ebx
push ebp
lea ebx, [esi + 0x108]
push 0
push 0
push ebx
push 0
mov dword [esi], 0x360
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x412135
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x412135
push 0
push 0
push 0
push 0
push 0x360
push esi
mov word [eax], 0
push 0x82168
mov dword [esi + 4], 0
call fcn.0040f110
mov ebp, eax
jmp 0x412139
mov ebp, dword [esp + 0xc]
xor eax, eax
push edi
push eax
mov ecx, 0xd8
mov edi, esi
push 0x19
push ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esi], 0x360
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
pop edi
je 0x412191
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x412191
push 0
push 0
push 0
push 0
push 0x360
push esi
mov word [eax], 0
push 0x82168
mov dword [esi + 4], 1
call fcn.0040f110
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebp
pop ebp
pop ebx
pop esi
pop ecx
ret

Function at 0x412550
Capabilities:
Persist via network provider registry key
Persist via windows service
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0x4278c4
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x412572
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x20
push 0x4278a4
push 1
push 0
push 0x42788c
push ecx
call esi
test eax, eax
je 0x4125a5
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
push 0x46
push 0x426bc4
push 1
push 0
push 0x427880
push eax
call esi
test eax, eax
je 0x4125d2
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret 4
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 8]
push edx
push edi
push 1
push 0
push 0x427864
push eax
call esi
test eax, eax
pop edi
je 0x41260e
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
call fcn.0040e5e0
neg eax
sbb eax, eax
pop esi
inc eax
pop ecx
ret 4
Function at 0x4129c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x426dd4]
mov ecx, dword [0x426dd8]
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
cmp word [edi + 2], 0x3a
je 0x4129f5
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 4
mov dx, word [edi]
lea eax, [esp + 8]
push eax
mov word [esp + 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x412a17
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 4
push 0x248
push 0x40
mov dword [esp + 0x20], 0x248
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x412a3c
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 4
lea ecx, [esp + 0x18]
push ecx
push esi
push 1
push edi
call sub.MPR.dll_WNetGetUniversalNameW
test eax, eax
je 0x412a5f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 4
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
shl eax, 1
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, dword [esp + 0x28]
add esp, 0x10
shr ecx, 1
mov eax, esi
pop edi
mov word [esi + ecx*2], 0
pop esi
add esp, 0xc
ret 4
Function at 0x4130d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 0x10]
cmp eax, 0x10
je 0x4130ff
cmp eax, 0x18
je 0x4130f3
cmp eax, 0x20
jne 0x4131fa
mov eax, dword [esp + 4]
mov dword [eax], 0xe
jmp 0x413109
mov eax, dword [esp + 4]
mov dword [eax], 0xc
jmp 0x413109
mov eax, dword [esp + 4]
mov dword [eax], 0xa
mov ecx, dword [esp + 8]
push ebx
push esi
push edi
lea edi, [eax + 8]
mov dword [eax + 4], edi
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
add edi, 4
shl esi, 4
add esi, ebx
add edi, 4
add edi, 4
mov ecx, dword [esi]
add esi, 4
mov dword [edi - 0xc], ecx
add edi, 4
mov edx, dword [esi]
add esi, 4
mov dword [edi - 0xc], edx
mov ecx, dword [esi]
add esi, 4
mov dword [edi - 8], ecx
mov edx, dword [esi]
sub esi, 0x1c
mov dword [edi - 4], edx
mov eax, dword [eax]
dec eax
test eax, eax
jbe 0x4131d8
push ebp
mov dword [esp + 0x14], eax
mov ebp, 4
mov eax, dword [esi]
xor ecx, ecx
mov dword [esp + 0x20], eax
xor edx, edx
mov cl, byte [esp + 0x22]
xor ebx, ebx
add edi, 4
add esi, 4
mov dl, byte [ecx + 0x41edbc]
xor ecx, ecx
mov cl, ah
mov edx, dword [edx*4 + 0x4207bc]
mov bl, byte [ecx + 0x41edbc]
mov ecx, dword [ebx*4 + 0x4203bc]
xor ebx, ebx
xor edx, ecx
mov ecx, eax
shr ecx, 0x18
and eax, 0xff
mov bl, byte [ecx + 0x41edbc]
mov ecx, dword [ebx*4 + 0x420bbc]
xor edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x41edbc]
mov ebx, dword [ecx*4 + 0x41ffbc]
xor edx, ebx
dec ebp
mov dword [edi - 4], edx
jne 0x413161
mov eax, dword [esp + 0x14]
sub esi, 0x20
dec eax
mov dword [esp + 0x14], eax
jne 0x41315c
pop ebp
mov edx, dword [esi]
add esi, 4
mov dword [edi], edx
add edi, 4
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [esi + 4]
add edi, 4
add esi, 4
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
ret 0x10