joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c709
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x431788
mov ecx, edi
call fcn.0041abdc
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x41c75c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x41c76f
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0041ad6b
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041ad43
jmp 0x41c76f
mov ecx, esi
call fcn.0041e38b
test eax, eax
je 0x41c76f
push edi
mov ecx, eax
call fcn.0041c6c1
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x41dcb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41dcfa
call fcn.00421c35
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41dcfa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41dcf1
xor eax, eax
jmp 0x41dd02
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041dd08
pop edi
pop esi
pop ebx
ret 4

Function at 0x42245e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42248c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4224aa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004223c4
jmp 0x4224aa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4224aa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004223c4
test edi, edi
mov eax, edi
jne 0x422494
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x408969
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
and ebx, eax
sub eax, 0x1c3b4db6
call fcn.00408997
add ebx, 0xa337aae3
xor dword [esi], ecx
inc esi
dec eax
inc ebx
cmp esi, edx
jne fcn.00408969
ret
Function at 0x1061a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1061a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1061a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1061a06a
add dl, dl
jne 0x1061a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1061a0dc
xor eax, eax
add dl, dl
jne 0x1061a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1061a17d
add dl, dl
jne 0x1061a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1061a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1061a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1061a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1061a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1061a075
mov eax, 1
add dl, dl
jne 0x1061a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1061a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1061a0e1
sub eax, ebx
mov ebx, 1
jne 0x1061a128
mov ecx, 1
add dl, dl
jne 0x1061a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1061a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1061a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1061a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1061a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1061a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1061a136
cmp eax, 0x7d00
jae 0x1061a16d
cmp eax, 0x500
jb 0x1061a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1061a075
cmp eax, 0x7f
ja 0x1061a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1061a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1061a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1061a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ef03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x4101d0]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4101cc]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x4101d0]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x4101c8]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4026a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ef03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x4101d4]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4101cc]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x4101d0]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x4101c8]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x402720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ef03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x4101d0]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4101d8]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x4101d0]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x4101c8]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4066f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f15c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x416110]
push ebx
push esi
push edi
mov dword [esp + 0x148], eax
xor eax, eax
mov dword [esp + 0xc], 0
mov ecx, 0x47
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x11c
call dword [0x410170]
push 0x410e94
lea ecx, [esp + 0x14]
call dword [0x4101d4]
test byte [esp + 0x144], 0x40
mov ebx, 1
mov dword [esp + 0x154], ebx
je 0x40676e
push 0x411098
jmp 0x4067e2
cmp dword [esp + 0x3c], 2
jne 0x4067ec
mov eax, dword [esp + 0x30]
cmp eax, 6
jne 0x4067b9
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x40679a
cmp byte [esp + 0x146], bl
lea ecx, [esp + 0x10]
jne 0x4067b2
push 0x41107c
jmp 0x4067e6
test eax, eax
jne 0x4067ec
cmp byte [esp + 0x146], bl
lea ecx, [esp + 0x10]
jne 0x4067b2
push 0x411058
jmp 0x4067e6
push 0x411030
jmp 0x4067e6
cmp eax, 5
jne 0x4067d8
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x4067cd
push 0x411010
jmp 0x4067e2
test eax, eax
jne 0x4067ec
push 0x410fec
jmp 0x4067e2
cmp eax, 4
ja 0x4067ec
push 0x410fcc
lea ecx, [esp + 0x14]
call dword [0x4101a4]
mov esi, dword [esp + 0x15c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [0x4101d0]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x154], 0
call dword [0x4101c8]
mov ecx, dword [esp + 0x14c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x140]
pop ebx
call fcn.0040e969
add esp, 0x14c
ret 4
Function at 0x40d9f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x412f54
mov dword [esi + 4], 0xc0000001
mov ecx, dword [0x416148]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.0040c140

Function at 0x40dfa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x1c8]
push eax
mov dword [esi], 0x412ffc
mov dword [esi + 4], 0xc0000001
call dword [0x41015c]
mov ecx, esi
pop esi
jmp fcn.0040c140

Function at 0x40eb32
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x4132b8
call fcn.0040ed44
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [0x4100f8]
call ebx
cmp word [eax], 0x5a4d
jne 0x40eb72
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40eb72
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40eb8a
cmp eax, 0x20b
je 0x40eb77
mov dword [ebp - 0x1c], edi
jmp 0x40eb9e
cmp dword [ecx + 0x84], 0xe
jbe 0x40eb72
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40eb98
cmp dword [ecx + 0x74], 0xe
jbe 0x40eb72
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [0x410208]
pop ecx
or dword [0x416540], 0xffffffff
or dword [0x416544], 0xffffffff
call dword [0x41020c]
mov ecx, dword [0x416538]
mov dword [eax], ecx
call dword [0x410210]
mov ecx, dword [0x416534]
mov dword [eax], ecx
mov eax, dword [0x410214]
mov eax, dword [eax]
mov dword [0x41653c], eax
call fcn.0040ee20
call fcn.0040eec0
cmp dword [0x416130], edi
jne 0x40ebfe
push fcn.0040eec0
call dword [0x410218]
pop ecx
call fcn.0040eeae
push 0x416040
push 0x41603c
call fcn.0040eea8
push 0x40ee64
call fcn.0040eb1a
mov eax, dword [0x416530]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41652c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [0x410220]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x40ec52
push 8
call fcn.0040ee1a
pop ecx
push 0x416038
push 0x416000
call fcn.0040eea8
pop ecx
pop ecx
mov eax, dword [0x410228]
mov esi, dword [eax]
cmp esi, edi
jne 0x40ec7c
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40ed36
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x40eceb
cmp ax, di
je 0x40ec92
cmp dword [ebp - 0x20], edi
jne 0x40eceb
mov ax, word [esi]
cmp ax, di
je 0x40eca7
cmp ax, 0x20
ja 0x40eca7
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40ec92
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [0x4100f4]
test byte [ebp - 0x58], 1
je 0x40ecc3
movzx eax, word [ebp - 0x54]
jmp 0x40ecc6
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004056a0
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x40ece3
push esi
call dword [0x410234]
call dword [0x410238]
jmp 0x40ed30
cmp ax, 0x22
jne 0x40ecfc
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x40ec7c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040ed7f
ret
Function at 0x9b60b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009b6200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9b60d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b60c2
add dl, dl
jne 0x9b60e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b6134
xor eax, eax
add dl, dl
jne 0x9b60ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b61d5
add dl, dl
jne 0x9b60fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b6108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b6113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b611e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9b612a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9b60cd
mov eax, 1
add dl, dl
jne 0x9b6142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b614d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b6139
sub eax, ebx
mov ebx, 1
jne 0x9b6180
mov ecx, 1
add dl, dl
jne 0x9b6166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9b6171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b615d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b60cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9b6197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9b61a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b618e
cmp eax, 0x7d00
jae 0x9b61c5
cmp eax, 0x500
jb 0x9b61c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b60cd
cmp eax, 0x7f
ja 0x9b61c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b60cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9b61f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9b60cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100019a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035851
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10049390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push 0xf0000000
push 0x18
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x50]
push 0
mov dword [ebp - 0x48], 0
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x50], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10001a30
push eax
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], eax
push 0x1003f8b4
mov byte [esi], al
call fcn.100025a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
jmp 0x10001b98
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x44], 0x208
mov dword [ebp - 0x40], 0x660e
mov dword [ebp - 0x3c], 0x10
jb 0x10001a4d
mov edi, dword [edi]
movdqu xmm0, xmmword [edi]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x50]
movdqu xmmword [ebp - 0x38], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10001aea
cmp dword [ebx + 0x14], 0x10
jb 0x10001a80
mov ebx, dword [ebx]
push 0
push ebx
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, dword [ebp - 0x58]
mov ecx, 0x1000
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x54], eax
add eax, eax
cmp eax, ecx
cmova ecx, eax
push ecx
mov dword [ebp - 0x58], ecx
call fcn.1001f9a0
add esp, 4
mov edi, eax
cmp dword [ebx + 0x14], 0x10
jb 0x10001ab9
mov ebx, dword [ebx]
push dword [ebp - 0x54]
push ebx
push edi
call fcn.100220d0
add esp, 0xc
lea eax, [ebp - 0x54]
push dword [ebp - 0x58]
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10001b09
push edi
call fcn.10020c2c
add esp, 4
push 0x1003f8b4
mov ecx, esi
call fcn.10002260
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
jmp 0x10001b98
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
add eax, edi
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
push edi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10003040
mov dword [ebp - 4], 1
push edi
call fcn.10020c2c
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.100022c0
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x10001b86
push dword [ebp - 0x28]
call fcn.10020454
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020459
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001bc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100358a1
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10049390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push 0xf0000000
push 0x18
push 0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x50]
push 0
mov dword [ebp - 0x48], 0
push eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10001c50
push eax
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], eax
push 0x1003f8b4
mov byte [esi], al
call fcn.100025a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
jmp 0x10001da8
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0x208
mov dword [ebp - 0x40], 0x660e
mov dword [ebp - 0x3c], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x10001c70
mov eax, dword [eax]
movdqu xmm0, xmmword [eax]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x50]
movdqu xmmword [ebp - 0x38], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10001cfa
cmp dword [ebx + 0x14], 0x10
jb 0x10001ca3
mov ebx, dword [ebx]
push 0
push ebx
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
add eax, eax
push eax
call fcn.1001f9a0
add esp, 4
mov ebx, eax
cmp dword [edi + 0x14], 0x10
jb 0x10001ccc
mov edi, dword [edi]
push dword [ebp - 0x54]
push edi
push ebx
call fcn.100220d0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push ebx
push 0
push 1
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10001d19
push ebx
call fcn.10020c2c
add esp, 4
push 0x1003f8b4
mov ecx, esi
call fcn.10002260
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
jmp 0x10001da8
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x58]
add eax, ebx
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
push ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10003040
mov dword [ebp - 4], 1
push ebx
call fcn.10020c2c
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.100022c0
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x10001d96
push dword [ebp - 0x28]
call fcn.10020454
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020459
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10006d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100364f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x10049390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
mov dword [ebp - 0x2b8], 0
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x2c0], esi
call fcn.10022790
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10006e28
mov dword [esi + 0x14], 0xf
xor ecx, ecx
mov dword [esi + 0x10], eax
mov byte [esi], al
cmp byte [0], cl
je 0x10006e19
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006e10
sub ecx, edx
push ecx
push 0
mov ecx, esi
call fcn.100025a0
jmp 0x10006fba
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10006fae
push 0x1000
call fcn.1001f9a0
add esp, 4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
mov edi, eax
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
push 0
push 0x1003f8b4
mov byte [ebp - 0x230], 0
call fcn.100025a0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2bc]
push 0
push eax
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006ef4
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x10006ef4
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.10005460
push 0
lea eax, [ebp - 0x2bc]
push eax
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10006ec3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.10020c2c
add esp, 4
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10005fe0
mov ecx, eax
call fcn.100068f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x248]
push eax
mov ecx, esi
call fcn.100022c0
mov dword [ebp - 0x2b8], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x234], 0x10
jb 0x10006f5b
push dword [ebp - 0x248]
call fcn.10020454
add esp, 4
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], 0x10
jb 0x10006f91
push dword [ebp - 0x230]
call fcn.10020454
add esp, 4
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
jmp 0x10006fcb
push 0x1003f8b4
mov ecx, esi
call fcn.10002260
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b8], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020459
mov esp, ebp
pop ebp
ret 4
Function at 0x10006ff0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003654a
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10049390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x25c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x250]
push 0x228
push 0
push eax
mov dword [ebp - 0x258], 1
call fcn.10022790
add esp, 0xc
mov dword [ebp - 0x254], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007157
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10007150
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, edi
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x230], ax
je 0x100070f3
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100070e4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.10002740
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.100071e0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x1000712a
push dword [ebp - 0x28]
call fcn.10020454
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x254]
push eax
push edi
mov dword [ebp - 0x18], 0
call ebx
test eax, eax
jne 0x100070b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020459
mov esp, ebp
pop ebp
ret 4