joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8ef849
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x22273a98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x22278700]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x10]
call fcn.008f5d89
push 2
push 0
push 0
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.008efe19
mov ecx, esi
call fcn.008ef789
lea ecx, [esp + 0xc]
mov esi, eax
mov edi, edx
mov dword [esp + 0x24], 0xffffffff
call fcn.008f5db9
mov eax, esi
mov edx, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x8f4f29
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x22278700]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov ebp, ecx
mov ecx, 8
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor ecx, ecx
xor eax, eax
lea esp, [esp]
cmp edi, 0xa
jg 0x8f5086
cmp eax, 4
jge 0x8f4f9f
mov edi, edi
cmp ecx, 4
jge 0x8f4fa2
mov bl, byte [esp + eax*4 + 0x10]
lea edx, [ecx + edi*4]
mov byte [ebp + edx*4 + 0x14], bl
lea edx, [ecx + edi*4]
lea esi, [ebp + edx*4]
movzx edx, byte [esp + eax*4 + 0x11]
mov byte [esi + 0x15], dl
movzx edx, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], dl
movzx edx, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], dl
jl 0x8f4f69
cmp ecx, 4
jne 0x8f4fa7
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x8f4f59
cmp edi, 0xa
jg 0x8f5086
mov edx, 0x2227dd68
movzx esi, byte [esp + 0x1d]
mov al, byte [esp + 0x10]
xor al, byte [esi + 0x2227de88]
movzx esi, byte [esp + 0x1e]
movzx ebx, byte [esi + 0x2227de88]
movzx esi, byte [esp + 0x1f]
xor byte [esp + 0x11], bl
movzx ebx, byte [esi + 0x2227de88]
movzx esi, byte [esp + 0x1c]
xor byte [esp + 0x12], bl
movzx ebx, byte [esi + 0x2227de88]
xor al, byte [edx]
xor byte [esp + 0x13], bl
mov byte [esp + 0x10], al
inc edx
lea eax, [esp + 0x11]
mov esi, 3
movzx ebx, byte [eax - 1]
xor byte [eax + 3], bl
movzx ebx, byte [eax]
xor byte [eax + 4], bl
movzx ebx, byte [eax + 1]
xor byte [eax + 5], bl
movzx ebx, byte [eax + 2]
xor byte [eax + 6], bl
add eax, 4
sub esi, 1
jne 0x8f5009
xor eax, eax
cmp edi, 0xa
jg 0x8f5086
cmp eax, 4
jge 0x8f5070
nop
cmp ecx, 4
jge 0x8f5073
movzx ebx, byte [esp + eax*4 + 0x10]
lea esi, [ecx + edi*4]
mov byte [ebp + esi*4 + 0x14], bl
movzx ebx, byte [esp + eax*4 + 0x11]
lea esi, [ecx + edi*4]
lea esi, [ebp + esi*4]
mov byte [esi + 0x15], bl
movzx ebx, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], bl
movzx ebx, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], bl
jl 0x8f5039
cmp ecx, 4
jne 0x8f5078
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x8f502e
cmp edi, 0xa
jle 0x8f4fba
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.008ff32c
add esp, 0x24
ret 4
Function at 0x8f50a9
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x22278700]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, ecx
push edi
lea esi, [eax + 0x24]
lea ecx, [eax + 0x28]
mov edi, 9
mov edi, edi
xor eax, eax
jmp 0x8f50d9
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x2227ad68]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x2227b168]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x2227b568]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x2227b968]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0xc], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x2227ad68]
xor dl, byte [eax + ebx*4 + 0x2227b168]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x2227b568]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x2227b968]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x2227ad68]
xor dl, byte [eax + ebx*4 + 0x2227b168]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x2227b568]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x2227b968]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x2227ad68]
xor dl, byte [eax + ebx*4 + 0x2227b168]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x2227b568]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x2227b968]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x17], dl
jl 0x8f50d9
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
add ecx, 0x10
add esi, 0x10
sub edi, 1
jne 0x8f50c9
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.008ff32c
add esp, 0x14
ret
Function at 0x8f5c79
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x22278700]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov ebx, ecx
test esi, esi
je 0x8f5d6e
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x8f5d6e
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
shr eax, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x10]
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test eax, eax
jbe 0x8f5d3e
lea edx, [esp + 0x28]
push edx
push esi
mov ecx, ebx
call fcn.008f51e9
mov edx, dword [esp + 0x20]
xor dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
xor dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
xor eax, ebp
mov ebp, dword [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], edx
jne 0x8f5cd0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], ebp
pop ebp
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x20]
pop edi
mov dword [ebx + 0xc], ecx
pop esi
mov dword [ebx + 0x10], edx
shl eax, 4
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.008ff32c
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.008ff32c
add esp, 0x2c
ret 0xc

Function at 0x8f71c9
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x8fa399
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.008fa2d9
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x8fa3d9
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x8fa3d9
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x8fa43f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x8fa4bc
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x8fa469
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x8fa459
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x8fa4a2
add byte [edi + 3], 0xff
jne 0x8fa4a2
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.008fa299
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x8fa4dc
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4

Function at 0x905989
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x90599a
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x905997
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x9059b9
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x9059f3
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x9059eb
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x9059f5
inc edx
add eax, 0x28
cmp edx, esi
jb 0x9059db
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x9136ac
Capabilities:
Parse pe header

Disassembly:
jmp 0x91860e
mov eax, 0x10009c46
call fcn.0091a20c
sub esp, 0x194
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
xor eax, eax
mov byte [ebp - 0x68], 0
lea edi, [ebp - 0x67]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], esp
push 8
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
push eax
push 0x40
lea eax, [ebp - 0xa8]
push eax
push esi
push dword [ebp + 8]
call dword [ebp + 0x18]
test eax, eax
je 0x918664
cmp dword [ebp + 0xc], 0x40
mov byte [ebp - 0x14], 1
je 0x918668
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.009138e6
cmp word [ebp - 0xa8], 0x5a4d
lea ecx, [ebp + 8]
sete al
mov byte [ebp - 0x18], al
push dword [ebp - 0x18]
call fcn.009138e6
lea eax, [ebp + 0xc]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x1a0]
push eax
mov eax, dword [ebp - 0x6c]
add eax, esi
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
test eax, eax
je 0x9186b7
cmp dword [ebp + 0xc], edi
mov byte [ebp - 0x14], 1
je 0x9186bb
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.009138e6
cmp dword [ebp - 0x1a0], 0x4550
jne 0x9186ec
cmp word [ebp - 0x19c], 0x14c
jne 0x9186ec
cmp word [ebp - 0x188], 0x10b
mov byte [ebp - 0x14], 1
je 0x9186f0
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.009138e6
mov eax, dword [ebp - 0x6c]
movzx ebx, word [ebp - 0x19a]
and dword [ebp - 0x14], 0
lea edi, [eax + esi + 0xf8]
cmp dword [ebp - 0x14], ebx
jae 0x91878e
lea eax, [ebp + 0xc]
push eax
push 0x28
lea eax, [ebp - 0x40]
push eax
push edi
push dword [ebp + 8]
call dword [ebp + 0x18]
test eax, eax
je 0x918734
cmp dword [ebp + 0xc], 0x28
mov byte [ebp - 0x18], 1
je 0x918738
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.009138e6
push 0x28
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
add edi, 0x28
call fcn.0091a2ee
add esp, 0xc
test eax, eax
je 0x91878e
mov ecx, dword [ebp - 0x1c]
mov eax, 0x20000020
and ecx, eax
cmp ecx, eax
jne 0x918783
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x14]
add eax, esi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x918790
inc dword [ebp - 0x14]
jmp 0x918710
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x918f74
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x1000c690
call fcn.0091a2f4
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [0x1005e4e8]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x918fe0
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x918fb8
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x918fe6
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x918fb0
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x918fb0
mov al, 1
jmp 0x918fb2
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.0091a32f
ret
Function at 0x919126
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x919149
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x91914c
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x91915f
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x919166
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x1005d66c]
test eax, eax
mov ecx, dword [0x1005d668]
jne 0x919180
test ecx, ecx
je 0x919195
mov eax, ecx
mov dword [0x1005d66c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x919195
cmp edx, dword [ebp - 4]
jb 0x919195
cmp edx, dword [ebp - 8]
jbe 0x919269
mov eax, ecx
test ecx, ecx
jmp 0x9191b9
test eax, eax
je 0x9191b4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x9191b4
cmp ecx, dword [ebp - 4]
jb 0x9191b4
cmp ecx, dword [ebp - 8]
jbe 0x919269
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x1005d66c], eax
jne 0x91919b
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x919304
cmp edi, 0x70000000
jb 0x9191e9
cmp edi, 0x80000000
ja 0x9191e9
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [0x1005e4e8]
test eax, eax
je 0x919304
cmp dword [ebp - 0x30], ebx
jne 0x919208
cmp dword [ebp - 0x34], ebx
jae 0x91921b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x9191d4
jmp 0x919304
push 0x40
push 0x3000
push ebx
push edi
call dword [0x1005e4f0]
test eax, eax
mov dword [0x1005d66c], eax
je 0x919304
mov ecx, dword [0x1005d668]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x1005d668], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x91925b
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x919309
cmp esi, dword [ebp - 8]
ja 0x919309
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.0091a274
add esp, 0xc
mov eax, esi
jmp 0x91930b
cmp esi, 0x70000000
jb 0x9192ad
cmp esi, 0x80000000
ja 0x9192ad
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [0x1005e4e8]
test eax, eax
je 0x919309
cmp dword [ebp - 0x14], ebx
jne 0x9192fb
cmp dword [ebp - 0x18], ebx
jb 0x9192fb
mov ecx, esi
and ecx, 0xffff
je 0x9192df
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [0x1005e4f0]
test eax, eax
mov dword [0x1005d66c], eax
jne 0x919237
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x919298
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x919331
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1000c6a0
call fcn.0091a2f4
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [0x1005e4e8]
test eax, eax
je 0x91938c
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x919388
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x919388
cmp word [eax + 0x14], 0
jne 0x91937d
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x91938e
mov eax, ecx
jmp 0x919377
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0091a32f
ret

Function at 0x93fe70
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41843a
call fcn.009421c6
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x41bf24
call dword [fcn.004191b8]
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [ebp - 4], edi
call dword [fcn.004191b8]
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call dword [fcn.004191b8]
mov eax, dword [ebp + 8]
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x70], 0xffffffff
push 0x400
mov dword [esi + 8], eax
lea eax, [esi + 0x74]
push edi
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x30], edi
mov word [esi + 0x6c], di
call fcn.00942120
or dword [esi + 0x478], 0xffffffff
mov ecx, dword [ebp - 0xc]
add esp, 0xc
or dword [esi + 0x47c], 0xffffffff
mov dword [esi + 0x474], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4010c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x43238c
push dword [ebp + 8]
xor esi, esi
call fcn.00401a75
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40112a
push 2
push 0xffffffffffffffff
push 0xffffffffffffffd8
push edi
call fcn.00419bfa
push edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push 1
push eax
call fcn.00419890
add esp, 0x20
cmp dword [ebp - 4], 0x534e4553
jne 0x401122
push dword [ebp + 8]
push str.error__file_already_encrypted:__s_n
call fcn.0040192c
pop ecx
pop ecx
mov esi, 0xa000000b
push edi
call fcn.00419619
jmp 0x40113d
push dword [ebp + 8]
push str.error__open_file_failed:__s_n
call fcn.0040192c
pop ecx
mov esi, 0xa0008009
pop ecx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401146
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x14c
mov eax, dword [0x43f344]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push esi
call fcn.004010c8
pop ecx
test eax, eax
jne 0x401334
push edi
push 0x43238c
push esi
call fcn.00401a75
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x401197
mov eax, 0xa0008009
jmp 0x401333
push ebp
push 2
push 0
push 0
push edi
call fcn.00419bfa
push edi
call fcn.0041a145
mov ebp, eax
mov dword [esp + 0x24], edx
xor eax, eax
mov dword [esp + 0x28], ebp
push eax
push eax
push eax
push edi
call fcn.00419bfa
add esp, 0x24
cmp dword [esp + 0x10], 0
jg 0x401207
jl 0x4011d0
cmp ebp, 4
ja 0x401207
push edi
call fcn.00419619
push 1
push ebx
push esi
call fcn.0040326b
add esp, 0x10
test eax, eax
jne 0x4011f8
push esi
push str.warning:_file__s_is_not_encrypted_because_it_is_too_small_n
call fcn.0040192c
pop ecx
pop ecx
jmp 0x401330
push ebx
push str.error:_write_file_failed___s_n
call fcn.0040192c
pop ecx
pop ecx
jmp 0x40122e
push 0x432434
push ebx
call fcn.00401a75
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x401238
push edi
call fcn.00419619
push ebx
push str.error:_write_file_failed___s_n
call fcn.0040192c
add esp, 0xc
mov eax, 0xa000000d
jmp 0x401332
mov edx, dword [esp + 0x160]
xor ecx, ecx
mov al, byte [edx + ecx + 0xc]
xor al, 0xcc
mov byte [esp + ecx + 0x148], al
inc ecx
cmp ecx, 0x10
jl 0x401241
push 0x10
lea eax, [esp + 0x14c]
mov dword [esp + 0x1c], 0x534e4553
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00416210
mov esi, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov ecx, esi
sub ecx, 1
mov edx, 0x1000
mov eax, ebx
mov dword [esp + 0x2c], edx
push 0
push edx
sbb eax, 0
push eax
push ecx
call fcn.00415070
add eax, 1
mov dword [esp + 0x38], esi
push 0x1000
adc edx, 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], ebx
call fcn.0041ce15
push edi
mov ebx, eax
call fcn.00419699
pop ecx
pop ecx
jmp 0x401308
push edi
push 0x1000
push 1
push ebx
call fcn.00419890
mov esi, eax
lea eax, [esp + 0x158]
push 0x10
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00403564
push esi
push ebx
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.004035bd
push ebp
push esi
push 1
push ebx
call fcn.0041a393
push edi
call fcn.00419699
add esp, 0x40
test eax, eax
je 0x4012c4
push ebp
push 0x28
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0041a393
push ebx
call fcn.0041ce10
push ebp
call fcn.00419619
push edi
call fcn.00419619
add esp, 0x1c
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x150]
pop esi
pop ebx
xor ecx, esp
call fcn.00415050
add esp, 0x14c
ret
Function at 0x401a75
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x43f344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x424]
push edi
mov edi, dword [ebp + 0xc]
push 0x200
push eax
push esi
call fcn.0041d9f0
pop ecx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, 0xfde9
push 0
push ebx
call esi
add eax, eax
cmp eax, 0x400
jae 0x401b4a
xor ecx, ecx
mov word [ebp + eax - 0x424], cx
lea eax, [ebp - 0x24]
push 0x10
push eax
push edi
call fcn.0041d9f0
pop ecx
push eax
push edi
push 0
push ebx
call esi
pop edi
add eax, eax
pop esi
pop ebx
cmp eax, 0x20
jae 0x401b4a
xor ecx, ecx
mov word [ebp + eax - 0x24], cx
lea eax, [ebp - 0x24]
push 0x77
push eax
call fcn.004170d3
pop ecx
pop ecx
test eax, eax
je 0x401b2a
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401b2a
test al, 1
je 0x401b2a
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0041db3c
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415050
mov esp, ebp
pop ebp
ret
call fcn.004154a7
int3