joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0xf5e000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xf5e00a
jmp 0xf6000f
jmp fcn.00ad4210
Function at 0x17e64d0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017e6620
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 0x17e64f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17e64e2
add dl, dl
jne 0x17e6501
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17e6554
xor eax, eax
add dl, dl
jne 0x17e650e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17e65f5
add dl, dl
jne 0x17e651d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17e6528
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17e6533
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17e653e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17e654a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x17e64ed
mov eax, 1
add dl, dl
jne 0x17e6562
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17e656d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17e6559
sub eax, ebx
mov ebx, 1
jne 0x17e65a0
mov ecx, 1
add dl, dl
jne 0x17e6586
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17e6591
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17e657d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17e64ed
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x17e65b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17e65c2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17e65ae
cmp eax, 0x7d00
jae 0x17e65e5
cmp eax, 0x500
jb 0x17e65e0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17e64ed
cmp eax, 0x7f
ja 0x17e65e8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17e64ed
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x17e6616
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 0x17e64ed
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x412402
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41242e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4124cb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4124f5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412470
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4124fa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4124f5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x41b258]
push ebx
push esi
push edi
push eax
mov eax, dword [ebp + 8]
call fcn.00401720
test eax, eax
mov dword [esp + 0x18], eax
je 0x4019a8
mov eax, dword [0x41b280]
lea ecx, [esp + 0xc]
push ecx
push 0xe
call fcn.00402940
lea edx, [esp + 0xc]
mov esi, eax
mov eax, dword [0x41b280]
push edx
push 0xf
mov dword [esp + 0x1c], esi
call fcn.00402940
mov edi, eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41b280]
push 1
mov dword [esp + 0x24], edi
call fcn.00402940
test esi, esi
mov dword [esp + 0x10], eax
je 0x4019a8
test edi, edi
je 0x4019a8
test eax, eax
je 0x4019a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10830
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov esi, eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
test eax, eax
je 0x4018d9
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4018db
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov edx, dword [ecx]
mov ecx, dword [0x41b288]
push ecx
mov ecx, dword [0x419024]
mov dword [esi + 0x14], edx
mov edx, dword [esi]
push eax
mov byte [esi + 0x20], 0
mov byte [esi + 0x21], 0
mov eax, dword [edx + 0x18]
push eax
push ecx
lea edx, [esi + 0x1002a]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
call fcn.00402ed0
test eax, eax
je 0x401933
mov edi, dword [esi]
push eax
call fcn.00402be0
jmp 0x401935
xor eax, eax
xor ecx, ecx
cmp eax, ecx
mov dword [esi + 0x28], eax
jne 0x401943
call fcn.004065c0
push ecx
push ecx
push esi
push 0x402620
push ecx
push ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
push eax
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call ebx
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
push 0
call ebx
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
push 0
call ebx
push eax
call edi
mov edx, dword [esp + 0x14]
push edx
push 0
call ebx
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x14
cmp dword [eax + 4], 0
push ebx
push esi
push edi
je 0x401e0d
mov eax, dword [0x41b280]
lea ecx, [esp + 0x14]
push ecx
push 0xe
call fcn.00402940
lea edx, [esp + 0x14]
mov esi, eax
mov eax, dword [0x41b280]
push edx
push 0xf
mov dword [esp + 0x20], esi
call fcn.00402940
mov edi, eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41b280]
push 1
mov dword [esp + 0x24], edi
call fcn.00402940
test esi, esi
mov dword [esp + 0x10], eax
je 0x401e0d
test edi, edi
je 0x401e0d
test eax, eax
je 0x401e0d
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10830
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x401d15
mov edx, dword [eax]
cmp word [edx], 0
je 0x401d3a
mov eax, dword [eax + 4]
test eax, eax
jne 0x401d06
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov eax, dword [edi]
test eax, eax
je 0x401d3e
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x401d40
mov eax, edx
jmp 0x401d17
xor eax, eax
mov dword [esi + 0xc], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov ecx, dword [eax]
mov edx, dword [0x41b288]
xor eax, eax
push edx
mov dword [esi + 0x14], ecx
mov ecx, dword [esi]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [0x419024]
mov byte [esi + 0x20], 1
mov byte [esi + 0x21], 0
mov edx, dword [ecx + 0x18]
push edx
push eax
lea ecx, [esi + 0x1002a]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
call fcn.00402ed0
test eax, eax
je 0x401d9c
mov edi, dword [esi]
push eax
call fcn.00402be0
jmp 0x401d9e
xor eax, eax
test eax, eax
mov dword [esi + 0x28], eax
jne 0x401daa
call fcn.004065c0
push 0
push 0
push esi
push 0x402620
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
push eax
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call ebx
push eax
call edi
mov edx, dword [esp + 0x10]
push edx
push 0
call ebx
push eax
call edi
mov eax, dword [esp + 0x1c]
push eax
push 0
call ebx
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
push 0
call ebx
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402680
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
lea eax, [esi + 0xc]
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4026b7
mov dword [esi], eax
lea ecx, [esi + 0x28]
push ecx
push 0xa
mov eax, esi
mov dword [esi + 8], 0x41c000
call fcn.00402940
mov dword [esi + 0x24], eax
mov eax, esi
pop ecx
ret

Function at 0x4026e0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push edi
mov edi, dword [0x41b280]
cmp dword [edi], 0
jne 0x402706
push 0xf0000000
push 0x18
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402706
mov dword [edi], eax
pop edi
ret
push esi
push 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x402721
pop esi
pop edi
ret
push 0x10
push 0
push esi
call fcn.00401100
mov eax, dword [edi]
add esp, 0xc
push esi
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
ret

Function at 0x402750
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 8
push esi
mov esi, dword [0x41b280]
cmp dword [esi], 0
jne 0x402780
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402780
mov dword [esi], eax
xor al, al
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
lea eax, [esp + 4]
push eax
mov eax, dword [esi]
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4027ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
add esp, 8
ret 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
push 0x80
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x24], 0x75
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4027f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor al, al
pop esi
add esp, 8
ret 4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
je 0x40279e
mov al, 1
pop esi
add esp, 8
ret 4
Function at 0x402810
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x4c
cmp dword [esi], 0
mov al, 0x48
mov cl, 0x81
mov byte [esp], 0xb3
mov byte [esp + 1], 0xe1
mov byte [esp + 2], 0x4c
mov byte [esp + 3], 0x97
mov byte [esp + 4], 0x27
mov byte [esp + 5], cl
mov byte [esp + 6], 0x99
mov byte [esp + 7], 0xee
mov byte [esp + 8], 0x1a
mov byte [esp + 9], 0xd4
mov byte [esp + 0xa], 0x33
mov byte [esp + 0xb], 0x3b
mov byte [esp + 0xc], 0x26
mov byte [esp + 0xd], 0xb8
mov byte [esp + 0xe], 0x50
mov byte [esp + 0xf], 0x15
mov byte [esp + 0x10], 0xe2
mov byte [esp + 0x11], 0x85
mov byte [esp + 0x12], 0xf
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0x11
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0xb7
mov byte [esp + 0x17], 0x93
mov byte [esp + 0x18], 0xd7
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0xcb
mov byte [esp + 0x1b], 0xa7
mov byte [esp + 0x1c], 0x8e
mov byte [esp + 0x1d], 0x92
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], 0x44
jne 0x4028d4
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4028d4
mov dword [esi], eax
xor al, al
add esp, 0x4c
ret
push 0x2c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00401100
push 0x20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov word [esp + 0x38], 0x208
mov word [esp + 0x3c], 0x6610
mov byte [esp + 0x40], 0x20
call fcn.00401140
mov edx, dword [esi]
add esp, 0x18
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x2c
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40293a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004065c0
add esp, 4
xor al, al
add esp, 0x4c
ret
mov al, 1
add esp, 0x4c
ret
Function at 0x402940
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
mov eax, dword [esi + 8]
test eax, eax
push edi
je 0x402987
mov ebx, dword [eax]
xor edi, edi
test ebx, ebx
jbe 0x402987
lea esp, [esp]
mov eax, dword [esi + 8]
push 8
lea ecx, [eax + edi*8 + 8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00401140
movzx eax, word [esp + 0x1c]
add esp, 0xc
cmp eax, ebp
je 0x402993
add edi, 1
cmp edi, ebx
jb 0x402960
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esi + 8]
push 8
lea edx, [ecx + edi*8 + 8]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00401140
mov ax, word [esp + 0x20]
mov cx, word [esp + 0x1e]
add esp, 0xc
cmp ax, cx
jbe 0x402987
movzx ecx, cx
movzx edi, ax
sub edi, ecx
je 0x402987
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x402987
movzx edx, word [esp + 0x12]
add edx, dword [esi + 8]
push edi
push edx
push ebx
call fcn.00401140
add esp, 0xc
lea ebp, [esi + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00402810
test al, al
je 0x402987
mov eax, dword [esp + 0x24]
push eax
push ebx
push 0
push 0
mov dword [eax], edi
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x402a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004065c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x24]
cmp edi, dword [eax]
je 0x402a4f
call fcn.004065c0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
movzx ecx, word [esp + 0x16]
mov dword [eax], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x402a91
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x402a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004065c0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov dword [esi + 4], 0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret 8

Function at 0x402ab0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x41b280]
cmp dword [esi], 0
jne 0x402ada
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402ada
mov dword [esi], eax
xor al, al
pop esi
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [esi]
push edi
push 0
push 0
push 0x2c
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x402aff
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
ret 8
mov edx, dword [esp + 0xc]
mov eax, dword [edi]
push 0
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x402af3
mov al, 1
pop esi
ret 8
Function at 0x4032c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 2
lea edx, [esp + 0x14]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push esi
call edi
test eax, eax
je 0x403349
cmp dword [esp + 0x14], 0
jg 0x4032f5
jl 0x4032ee
cmp dword [esp + 0x10], 4
jae 0x4032f5
mov al, 1
pop edi
add esp, 0x18
ret
push 2
push 0
or ecx, 0xffffffff
push ecx
mov eax, 0xfffffffc
push eax
push esi
call edi
test eax, eax
je 0x403349
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403349
cmp dword [esp + 8], 4
jne 0x403349
push 4
lea edx, [esp + 0x10]
push 0x419014
push edx
call fcn.00403270
add esp, 0xc
neg eax
sbb eax, eax
neg eax
pop edi
add esp, 0x18
ret
xor al, al
pop edi
add esp, 0x18
ret
Function at 0x403af0
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0xc]
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x18]
push esi
xor esi, esi
push esi
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403bb9
mov eax, dword [esp + 8]
test eax, eax
jne 0x403b28
mov al, 1
pop esi
pop ebp
add esp, 0xc
ret
cmp eax, dword [edi + 0x14]
jae 0x403b50
mov ecx, eax
and ecx, 0xf
je 0x403b50
mov esi, 0x10
sub esi, ecx
mov ecx, dword [edi + 0xc]
push esi
add ecx, eax
push 0
push ecx
call fcn.00401100
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [edi + 0xc]
add eax, esi
push eax
lea edx, [esp + 0x10]
push edx
push ecx
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x403bb9
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push 0
push 0
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x403bb9
mov ecx, dword [esp + 8]
mov edx, dword [edi + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
add ecx, esi
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403bb9
mov eax, dword [esp + 8]
add eax, esi
cmp dword [esp + 0x10], eax
jae 0x403b20
pop esi
xor al, al
pop ebp
add esp, 0xc
ret
Function at 0x4040e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
push esi
mov esi, eax
xor ecx, ecx
jmp 0x4040f0
mov eax, ecx
shr eax, 1
test cl, 1
je 0x4040fe
xor eax, 0xedb88320
test al, 1
je 0x40410b
shr eax, 1
xor eax, 0xedb88320
jmp 0x40410d
shr eax, 1
test al, 1
je 0x40411a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40411c
shr eax, 1
test al, 1
je 0x404129
shr eax, 1
xor eax, 0xedb88320
jmp 0x40412b
shr eax, 1
test al, 1
je 0x404138
shr eax, 1
xor eax, 0xedb88320
jmp 0x40413a
shr eax, 1
test al, 1
je 0x404147
shr eax, 1
xor eax, 0xedb88320
jmp 0x404149
shr eax, 1
test al, 1
je 0x404156
shr eax, 1
xor eax, 0xedb88320
jmp 0x404158
shr eax, 1
test al, 1
je 0x404165
shr eax, 1
xor eax, 0xedb88320
jmp 0x404167
shr eax, 1
mov dword [esp + ecx*4 + 4], eax
add ecx, 1
cmp ecx, 0x100
jl 0x4040f0
or eax, 0xffffffff
test edx, edx
je 0x40419d
movzx ecx, byte [esi]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [esp + ecx*4 + 4]
sub edx, 1
add esi, 1
test edx, edx
jne 0x404181
not eax
pop esi
add esp, 0x400
ret

Function at 0x4041b0
Capabilities:
Check os version

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x404203
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404203
mov eax, dword [esp]
lea ecx, [esp + 8]
push ecx
push 4
lea edx, [esp + 0xc]
push edx
push 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x404209
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0xc
ret
cmp dword [esp + 4], 0
je 0x40422f
mov eax, dword [esp]
push 4
lea edx, [esp + 8]
push edx
push 0x18
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4041f3
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0xc
ret