joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022d20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1005f978
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push edi
mov edi, dword [esp + 0x38]
xor ebx, ebx
cmp edi, ebx
je 0x10022e34
mov ecx, 0xaa
xor eax, eax
mov dl, byte [eax + 0x10002350]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x10], dl
jns 0x10022d6c
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x15
jl 0x10022d4f
push esi
mov byte [esp + 0x29], bl
mov ecx, dword [0x100dd988]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x38], ebx
call dword [ecx + 0xc]
xor edx, edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov esi, eax
mov dword [esp + 0x1c], edx
mov eax, 0x80808081
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edx
push 0x437f0000
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], 0xffffffff
mov word [esp + 0x30], dx
mul dword [ecx + 8]
shr edx, 7
mov dword [esp + 0x14], edx
fild qword [esp + 0x14]
mov dword [esp + 0x18], ebx
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
push eax
mov eax, 0x80808081
mul dword [ecx + 4]
shr edx, 7
mov dword [esp + 0x18], edx
mov eax, 0x80808081
fild qword [esp + 0x18]
mov dword [esp + 0x1c], ebx
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
push edx
mul dword [ecx]
shr edx, 7
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x58]
fild qword [esp + 0x1c]
mov edx, dword [esp + 0x54]
fstp dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [0x100dd984]
push edx
push esi
push eax
call dword [ecx + 0xec]
add esp, 0x24
pop esi
mov ecx, dword [esp + 0x28]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x1002c5a0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.10050730
mov eax, dword [esp + 0x100c]
push ebp
push esi
mov esi, dword [esp + 0x1018]
push 0
push 0x8000027
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x24], 0
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x1002c5f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
jmp 0x1002c667
push ebx
push edi
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x1000
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002c661
mov edi, dword [esp + 0x14]
test edi, edi
je 0x1002c661
xor ecx, ecx
test edi, edi
jbe 0x1002c645
mov eax, dword [esi]
xor edx, edx
mov dl, byte [esp + ecx + 0x18]
mov ebx, eax
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10003008]
xor edx, eax
inc ecx
cmp ecx, edi
mov dword [esi], edx
jb 0x1002c620
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x1000
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002c612
pop edi
pop ebx
test ebp, ebp
je 0x1002c66e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
mov eax, dword [esp + 8]
not edx
mov dword [esi], edx
pop esi
pop ebp
add esp, 0x1008
ret
Function at 0x10033030
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x100e02e8
jmp 0x100346d0
push 0xffffffffffffffff
push 0x1005ff4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 8], al
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], edi
call fcn.1003a4c0
mov cl, byte [esp + 0xb]
mov dl, byte [esp + 0xb]
mov byte [esi + 0x24], cl
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov ecx, esi
mov byte [esi + 0x34], dl
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call fcn.10033880
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10033370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1005fe78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
push edi
mov byte [esp + 0x14], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.1000ebd0
test al, al
je 0x100333e6
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
push ebx
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, [esp + 0x18]
call fcn.1000eb30
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
cmp edx, ebp
mov ecx, 0x100085f0
je 0x100333f9
mov ecx, edx
mov esi, ecx
mov al, byte [ecx]
cmp al, 0x20
je 0x10033405
cmp al, 9
jne 0x10033409
inc ecx
inc esi
jmp 0x100333fb
mov al, byte [esi]
cmp al, 0x20
jl 0x1003342c
cmp al, 0x3b
je 0x1003342c
cmp al, 0x22
jne 0x10033425
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10033426
cmp al, 0x22
jne 0x10033417
jmp 0x10033426
inc esi
mov al, byte [esi]
cmp al, 0x20
jge 0x1003340f
cmp byte [ecx], 0x2f
jne 0x10033437
cmp byte [ecx + 1], 0x2f
je 0x1003347a
cmp ecx, esi
jae 0x10033450
mov bl, byte [esi]
push ecx
mov ecx, dword [esp + 0x14]
mov byte [esi], 0
call fcn.100338e0
mov byte [esi], bl
mov edx, dword [esp + 0x18]
cmp byte [esi], 0
je 0x10033490
inc esi
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x20
je 0x10033462
cmp al, 9
jne 0x10033466
inc ecx
inc esi
jmp 0x10033458
mov al, byte [esi]
cmp al, 0x20
jl 0x1003342c
cmp al, 0x3b
je 0x1003342c
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jge 0x1003346c
jmp 0x1003342c
cmp edx, ebp
je 0x100334b0
mov al, byte [edx - 1]
test al, al
je 0x100334a6
cmp al, 0xff
je 0x100334a6
dec al
mov byte [edx - 1], al
jmp 0x100334b0
cmp edx, ebp
je 0x100334b0
mov al, byte [edx - 1]
test al, al
je 0x100334a6
cmp al, 0xff
je 0x100334a6
dec al
mov byte [edx - 1], al
jmp 0x100334b0
dec edx
push edx
call fcn.10041d82
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x10034c00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push ebp
xor eax, eax
push esi
push edi
test ecx, ecx
je 0x10034c8c
mov edx, dword [esp + 0x18]
test edx, edx
je 0x10034c8c
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x10034c8c
mov edx, dword [ecx + 0x3c]
mov esi, dword [edx + ecx + 0xd8]
mov edi, dword [edx + ecx + 0xdc]
add esi, ecx
add edi, esi
cmp esi, edi
jae 0x10034c8e
mov ebp, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
cmp ecx, edx
jne 0x10034c80
test ebp, ebp
je 0x10034c52
mov dword [ebp], ecx
lea eax, [esp + 0x14]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
je 0x10034c8c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
mov dword [esi], ecx
push edx
push eax
push 4
push esi
call ebx
test eax, eax
je 0x10034c8c
mov eax, 1
add esi, 4
cmp esi, edi
jb 0x10034c41
pop edi
pop esi
pop ebp
pop ebx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1003df40
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x100
lea eax, [esp + 0x10c]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.10050ed2
add esp, 0xc
xor eax, eax
xor edx, edx
mov cl, byte [esp + edx]
test cl, cl
je 0x1003e1d6
cmp cl, 0x61
je 0x1003e1c6
cmp cl, 0x41
je 0x1003e1c6
cmp cl, 0x62
je 0x1003e1c6
cmp cl, 0x42
je 0x1003e1c6
cmp cl, 0x38
je 0x1003e1c6
cmp cl, 0x63
je 0x1003e1c6
cmp cl, 0x43
je 0x1003e1c6
cmp cl, 0x64
je 0x1003e1c6
cmp cl, 0x44
je 0x1003e1c6
cmp cl, 0x65
je 0x1003e1c6
cmp cl, 0x45
je 0x1003e1c6
cmp cl, 0x66
je 0x1003e1c6
cmp cl, 0x46
je 0x1003e1c6
cmp cl, 0x67
je 0x1003e1c6
cmp cl, 0x47
je 0x1003e1c6
cmp cl, 0x68
je 0x1003e1c6
cmp cl, 0x48
je 0x1003e1c6
cmp cl, 0x6a
je 0x1003e1c6
cmp cl, 0x4a
je 0x1003e1c6
cmp cl, 0x6b
je 0x1003e1c6
cmp cl, 0x4b
je 0x1003e1c6
cmp cl, 0x6c
je 0x1003e1c6
cmp cl, 0x4c
je 0x1003e1c6
cmp cl, 0x6e
je 0x1003e1c6
cmp cl, 0x4e
je 0x1003e1c6
cmp cl, 0x6f
je 0x1003e1c6
cmp cl, 0x4f
je 0x1003e1c6
cmp cl, 0x30
je 0x1003e1c6
cmp cl, 0x70
je 0x1003e1c6
cmp cl, 0x50
je 0x1003e1c6
cmp cl, 0x72
je 0x1003e1c6
cmp cl, 0x52
je 0x1003e1c6
cmp cl, 0x73
je 0x1003e1c6
cmp cl, 0x53
je 0x1003e1c6
cmp cl, 0x35
je 0x1003e1c6
cmp cl, 0x75
je 0x1003e1c6
cmp cl, 0x55
je 0x1003e1c6
cmp cl, 0x76
je 0x1003e1c6
cmp cl, 0x56
je 0x1003e1c6
cmp cl, 0x78
je 0x1003e1c6
cmp cl, 0x58
je 0x1003e1c6
cmp cl, 0x79
je 0x1003e1c6
cmp cl, 0x59
je 0x1003e1c6
cmp cl, 0x7a
je 0x1003e1c6
cmp cl, 0x5a
je 0x1003e1c6
cmp cl, 0x32
je 0x1003e1c6
cmp cl, 0x33
je 0x1003e1c6
cmp cl, 0x34
je 0x1003e1c6
cmp cl, 0x36
je 0x1003e1c6
cmp cl, 0x37
je 0x1003e1c6
cmp cl, 0x39
je 0x1003e1c6
cmp cl, 0x2d
je 0x1003e1c6
cmp cl, 0x5f
je 0x1003e1c6
cmp cl, 0x6d
je 0x1003e1c1
cmp cl, 0x4d
je 0x1003e1c1
cmp cl, 0x71
je 0x1003e1c1
cmp cl, 0x51
je 0x1003e1c1
cmp cl, 0x77
je 0x1003e1c1
cmp cl, 0x57
je 0x1003e1c1
cmp cl, 0x2b
je 0x1003e1c1
cmp cl, 0x69
je 0x1003e1bc
cmp cl, 0x49
je 0x1003e1bc
cmp cl, 0x31
je 0x1003e1bc
cmp cl, 0x74
je 0x1003e1bc
cmp cl, 0x54
je 0x1003e1bc
cmp cl, 0x2e
je 0x1003e1bc
cmp cl, 0x2c
je 0x1003e1bc
cmp cl, 0x3a
je 0x1003e1bc
cmp cl, 0x21
je 0x1003e1bc
cmp cl, 0x2f
je 0x1003e1bc
cmp cl, 0x28
je 0x1003e1bc
cmp cl, 0x29
je 0x1003e1bc
cmp cl, 0x5b
je 0x1003e1bc
cmp cl, 0x5d
je 0x1003e1bc
cmp cl, 0x20
jne 0x1003e1c9
add eax, 4
jmp 0x1003e1c9
add eax, 5
jmp 0x1003e1c9
add eax, 7
jmp 0x1003e1c9
add eax, 6
inc edx
cmp edx, 0x100
jb 0x1003df64
add esp, 0x100
ret
Function at 0x1003ffa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10060458
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, 0x11
xor eax, eax
mov dl, byte [eax + 0x10002368]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax], dl
jns 0x1003ffdc
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x15
jl 0x1003ffbf
push esi
mov byte [esp + 0x19], 0
mov ecx, dword [0x100dd988]
lea eax, [esp + 4]
push eax
mov dword [esp + 0x28], 0
call dword [ecx + 0xc]
xor edx, edx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov esi, eax
mov dword [esp + 0xc], edx
mov eax, 0x80808081
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov word [esp + 0x1c], dx
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x3c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x80808081
mov dword [esp + 0x40], edx
imul ecx
fild dword [esp + 0x40]
fstp dword [esp]
add edx, ecx
mov eax, 0x80808081
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], edx
imul ecx
fild dword [esp + 0x44]
fstp dword [esp]
add edx, ecx
push ecx
sar edx, 7
mov eax, edx
mov ecx, dword [esp + 0x50]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x4c]
fild dword [esp + 0x48]
fstp dword [esp]
push 0
push 0
push 0x40000000
push 0x42000000
push 0
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [0x100dd984]
push esi
push eax
push ecx
call dword [edx + 0xf8]
mov ecx, dword [esp + 0x50]
add esp, 0x34
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 0x1c
Function at 0x1005a3a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10007788
cmp edx, dword [eax]
je 0x1005a3c6
add eax, 8
inc ecx
cmp eax, 0x10007818
jl 0x1005a3b7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10007788]
jne 0x1005a4f4
mov eax, dword [0x101076c4]
cmp eax, 1
je 0x1005a4ce
test eax, eax
jne 0x1005a3f7
cmp dword [0x101076c8], 1
je 0x1005a4ce
cmp edx, 0xfc
je 0x1005a4f4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005a42e
lea eax, [ebp - 0x1a4]
push 0x10009528
push eax
call fcn.100555c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10051480
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1005a471
lea eax, [ebp - 0x1a4]
push eax
call fcn.10051480
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000942c
push edi
call fcn.100508e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x10009f80
push eax
call fcn.100555c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100555d0
lea eax, [ebp - 0xa0]
push 0x10009424
push eax
call fcn.100555d0
push dword [esi + 0x1000778c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100555d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x10009430
push eax
call fcn.10059aed
add esp, 0x2c
pop edi
jmp 0x1005a4f4
lea eax, [ebp + 8]
lea esi, [esi + 0x1000778c]
push 0
push eax
push dword [esi]
call fcn.10051480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401276
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435008]
jne 0x401280
repz ret
jmp fcn.0040211e

Function at 0x413b08
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409aa1
and dword [ebp - 4], 0
cmp dword [0x437d9c], 0
mov ebx, eax
jne 0x413bb9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413c6a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413c6a
push eax
call fcn.00409a2f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437d9c], eax
call esi
push eax
call fcn.00409a2f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x437da0], eax
call esi
push eax
call fcn.00409a2f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437da4], eax
call esi
push eax
call fcn.00409a2f
pop ecx
mov dword [0x437dac], eax
test eax, eax
je 0x413bb9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409a2f
pop ecx
mov dword [0x437da8], eax
mov eax, dword [0x437da8]
cmp eax, ebx
je 0x413c11
cmp dword [0x437dac], ebx
je 0x413c11
push eax
call fcn.00409aaa
push dword [0x437dac]
mov esi, eax
call fcn.00409aaa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c11
test edi, edi
je 0x413c11
call esi
test eax, eax
je 0x413c08
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c08
test byte [ebp - 0xc], 1
jne 0x413c11
or dword [ebp + 0x10], 0x200000
jmp 0x413c4a
mov eax, dword [0x437da0]
cmp eax, ebx
je 0x413c4a
push eax
call fcn.00409aaa
pop ecx
test eax, eax
je 0x413c4a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413c4a
mov eax, dword [0x437da4]
cmp eax, ebx
je 0x413c4a
push eax
call fcn.00409aaa
pop ecx
test eax, eax
je 0x413c4a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437d9c]
call fcn.00409aaa
pop ecx
test eax, eax
je 0x413c6a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413c6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x408
mov eax, dword [0x435008]
xor eax, esp
mov dword [esp + 0x404], eax
cmp dword [0x439678], 0xfc7
mov dword [esp], 0x343f0
jne 0x427ac6
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
add dword [esp + 4], 0xd
mov ecx, dword [0x43837c]
imul ecx, dword [esp + 4]
add ecx, 0x269ec3
cmp dword [0x439678], 0x1381
mov dword [0x43837c], ecx
movzx esi, word [0x43837e]
jne 0x427b00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
and eax, 0x7fff
call fcn.00401276
add esp, 0x408
ret

Function at 0x427b20
Capabilities:
Get file attributes

Disassembly:
cmp dword [0x439678], 0x930
jne 0x427b40
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
push 0
call esi
push 0
push 0
call esi
pop esi
cmp dword [0x439678], 0x114e
mov eax, dword [esp + 4]
mov dword [0x43837c], eax
jne 0x427b60
push 0x432df0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
Function at 0x410f20
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov dword [ebp - 0x84], 0x401610
mov dword [ebp - 0x80], 0x401618
mov dword [ebp - 0x7c], 0x401620
mov dword [ebp - 0x78], 0x401628
mov dword [ebp - 0x74], 0x401630
mov dword [ebp - 0x70], 0x401638
mov dword [ebp - 0x6c], 0x401640
mov dword [ebp - 0x68], 0x401648
mov dword [ebp - 0x64], 0x401650
mov dword [ebp - 0x60], 0x401658
mov dword [ebp - 0x5c], 0x401660
mov dword [ebp - 0x58], 0x401668
mov dword [ebp - 0x54], 0x401670
mov dword [ebp - 0x50], 0x401678
mov dword [ebp - 0x4c], 0x401680
mov dword [ebp - 0x48], 0x401688
mov dword [ebp - 0x44], 0x401690
mov dword [ebp - 0x40], 0x401698
mov dword [ebp - 0x3c], 0x4016a0
mov dword [ebp - 0x38], 0x4016a8
mov dword [ebp - 0x34], 0x4016b0
mov dword [ebp - 0x30], 0x4016b8
mov dword [ebp - 0x2c], 0x4016c0
mov dword [ebp - 0x28], 0x4016c8
mov dword [ebp - 0x24], 0x4016d0
mov dword [ebp - 0x20], 0x4016d8
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x78
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
jmp 0x411009
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1a
jge 0x411044
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x411042
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
mov dword [ebp + eax*4 - 0xec], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x411000
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x2f4], ax
push 0x10000
call fcn.00425d70
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x411144
push 0x10000
call fcn.00425d70
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x411138
push 0x8000
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
jbe 0x411105
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2f4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4110e5
lea eax, [ebp - 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x4110e5
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x2f4], ax
jmp 0x411107
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
jmp 0x411107
jmp 0x411122
push 0x8000
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x41109c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00425da0
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00425da0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x411150
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
call fcn.00411550
test eax, eax
je 0x411193
push 0x401700
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
push 0x401710
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411193
lea ecx, [ebp - 8]
push ecx
call dword [ebp - 4]
push 0
push 0
push 0x401730
push 0x401788
push 0x401798
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00411550
test eax, eax
je 0x4111e4
push 0x4017a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
push 0x4017b4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4111e4
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x411430
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4114ec
mov dword [ebp - 4], 0
jmp 0x41147e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1f
jae 0x4114d4
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x4470b0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4114d2
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4114d0
push 9
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4114d4
jmp 0x411475
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x10], eax
jmp 0x411462
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x411500
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x411544
push 0xf0000008
push 0x18
push 0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x411544
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret