joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c39
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x449778]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x1b8]
push ebp
mov ebp, dword [esp + 0x1c0]
push esi
mov esi, dword [esp + 0x1b8]
push edi
mov edi, dword [esp + 0x1c0]
push 0x40
mov dword [esp + 0x18], eax
pop eax
cmp esi, eax
jae 0x408c88
mov eax, esi
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.00426bf0
add esp, 0xc
cmp esi, 0x44
jae 0x408e5b
xor ecx, ecx
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], cl
cmp eax, 0x44
jae 0x408e5b
mov byte [esp + eax + 0x144], cl
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x408e5b
push ecx
push ecx
push ecx
mov byte [esp + eax + 0x150], cl
lea eax, [esp + 0x110]
push ecx
push eax
lea eax, [esi + 4]
mov byte [esp + esi + 0x15b], 1
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1d0]
push dword [esp + 0x34]
call fcn.004089e5
push 0x20
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.00426bf0
mov eax, dword [esp + 0x1d8]
add esp, 0xc
dec eax
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xec], eax
xor esi, esi
mov dword [esp + 0xf8], edi
push 0x10
pop eax
push 0x20
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0x104], ebp
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], esi
pop ebx
mov edi, dword [esp + esi + 0xec]
test edi, edi
je 0x408ddf
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x198]
push eax
push ebx
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x1d0]
push esi
call fcn.004089e5
push ebx
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.00426bf0
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x104]
xor byte [esp + ecx + 0x124], al
inc ecx
cmp ecx, ebx
jb 0x408dc3
sub edi, 1
jne 0x408d73
mov esi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x128]
push eax
push dword [esp + esi + 0x100]
call fcn.00426bf0
add esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, 0xc
jb 0x408d64
push 0x44
lea eax, [esp + 0x148]
push eax
call fcn.00415234
push ebx
lea eax, [esp + 0x128]
push eax
call fcn.00415234
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.00415234
push ebx
lea eax, [esp + 0x18c]
push eax
call fcn.00415234
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004256b4
add esp, 0x19c
ret 0x20
call fcn.00425c61
int3
Function at 0x40e988
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x439d1d
call fcn.00425758
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x40e9aa
mov al, 1
jmp 0x40eae6
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x40e9c8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x40eaaf
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x40ea1f
xor edi, edi
test esi, esi
je 0x40ea3f
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x40e9ef
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x40ea37
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x40e9e0
jmp 0x40ea37
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x40eadf
cmp byte [ebx + 0x1e], 0
je 0x40eadf
cmp dword [ebx + 0x10], 0
jne 0x40eadf
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x44e0c8
push edi
call fcn.00409254
test al, al
je 0x40eab7
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x40e9cb
cmp dword [ebp - 0x30], 0
jbe 0x40e9cb
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43c280]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43c280]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x40e9cb
push 0x43c6c8
lea ecx, [ebp - 0x28]
call fcn.004014a7
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x44e0c8
call fcn.00409677
lea ecx, [ebp - 0x28]
call fcn.00401a66
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.00425707
ret 8
Function at 0x40ed5f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x4393c1
call fcn.00425758
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ed78
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40edfc
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004116da
test al, al
je 0x40edc1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40edb8
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40edfc
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40edf3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.004256a6
pop ecx
pop ecx
mov eax, edi
call fcn.00425707
ret 4

Function at 0x40f02f
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x4393c1
call fcn.00425758
mov esi, dword [ebp + 8]
push esi
call fcn.0041141a
movzx eax, ax
cmp eax, 0x2e
je 0x40f071
cmp eax, 0x20
je 0x40f071
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40f05b
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40f110
jmp 0x40f075
xor edi, edi
mov ebx, edi
push esi
call fcn.0040ed4d
test al, al
jne 0x40f123
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push esi
call fcn.004116da
test al, al
je 0x40f0bd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f0b3
mov eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f0fc
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40f0f3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.004256a6
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x40f123
cmp byte [ebp + 0xc], 0
je 0x40f11f
push dword [ebp + 0x10]
push esi
call fcn.0040f5cb
xor eax, eax
jmp 0x40f13b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40f13b
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.00425707
ret 0xc
Function at 0x40f5cb
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x4393c1
call fcn.00425758
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40f5e4
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40f671
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004116da
test al, al
je 0x40f636
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f627
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f671
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40f668
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.004256a6
pop ecx
pop ecx
mov al, bl
call fcn.00425707
ret 8
Function at 0x40f866
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x439f6c
call fcn.00425758
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x40f965
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40f891
mov eax, dword [ebx]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f988
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push ebx
call fcn.004116da
test al, al
je 0x40f8ec
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f8dc
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f93d
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x40f934
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.004256a6
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x40f988
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40f95b
cmp eax, 3
je 0x40f95b
cmp eax, 0x12
je 0x40f95b
mov al, 1
jmp 0x40f95d
xor al, al
mov byte [edi + 0x5c], al
jmp 0x40fa3f
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f988
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40f95d
push ebx
mov ecx, edi
call fcn.004025c3
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a7
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.004122dd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401a66
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.00417c44
lea eax, [ebp - 0x274]
push eax
lea ecx, [edi + 0x30]
call fcn.00417c44
lea eax, [ebp - 0x26c]
push eax
lea ecx, [edi + 0x38]
call fcn.00417c44
and dword [edi + 0x58], 0
mov eax, esi
call fcn.00425707
ret 0xc
Function at 0x41012a
Capabilities:
Hash data using crc32b

Disassembly:
mov ecx, dword [esp + 4]
push edi
xor edi, edi
test ecx, ecx
je 0x410161
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x410160
mov eax, esi
mov edx, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
sar edx, 0x1f
and eax, ecx
shr esi, 1
and edx, 0x4c11db7
add ecx, ecx
xor edi, eax
xor ecx, edx
jne 0x41013a
pop esi
mov eax, edi
pop edi
ret 8

Function at 0x4103fe
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x449778]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44e0e0], 0
jne 0x410461
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x410451
jne 0x41044d
cmp dword [ebp - 0x74], 0x55f0
jb 0x41044d
call fcn.004104a9
test al, al
je 0x410451
xor al, al
jmp 0x410453
mov al, 1
mov byte [0x44e0e1], al
mov byte [0x44e0e0], 1
jmp 0x410466
mov al, byte [0x44e0e1]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004256b4
add ebp, 0x98
leave
ret
Function at 0x4143f7
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x4520f8], cl
inc ecx
cmp ecx, 0x100
jl 0x414400
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x452df9], al
mov byte [ebp*4 + 0x452df8], al
mov byte [ebp*4 + 0x4529fb], al
mov byte [ebp*4 + 0x4529f8], al
mov byte [ebp*4 + 0x4525fb], al
mov byte [ebp*4 + 0x4525fa], al
mov byte [ebp*4 + 0x4521fa], al
mov byte [ebp*4 + 0x4521f9], al
call fcn.00414c7a
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x452dfb], al
mov byte [ebp*4 + 0x4529fa], al
mov byte [ebp*4 + 0x4525f9], al
mov byte [ebp*4 + 0x4521f8], al
call fcn.00414c7a
mov bl, byte [ebp + 0x4520f8]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x452dfa], al
mov byte [ebp*4 + 0x4529f9], al
mov byte [ebp*4 + 0x4525f8], al
mov byte [ebp*4 + 0x4521fb], al
call fcn.00414c7a
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x453dfa], al
mov byte [ebp*4 + 0x4539f9], al
mov byte [ebp*4 + 0x4535f8], al
mov byte [ebp*4 + 0x4531fb], al
mov byte [edi*4 + 0x454dfa], al
mov byte [edi*4 + 0x4549f9], al
mov byte [edi*4 + 0x4545f8], al
mov byte [edi*4 + 0x4541fb], al
call fcn.00414c7a
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x453df8], al
mov byte [ebp*4 + 0x4539fb], al
mov byte [ebp*4 + 0x4535fa], al
mov byte [ebp*4 + 0x4531f9], al
mov byte [edi*4 + 0x454df8], al
mov byte [edi*4 + 0x4549fb], al
mov byte [edi*4 + 0x4545fa], al
mov byte [edi*4 + 0x4541f9], al
call fcn.00414c7a
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x453df9], al
mov byte [ebp*4 + 0x4539f8], al
mov byte [ebp*4 + 0x4535fb], al
mov byte [ebp*4 + 0x4531fa], al
mov byte [edi*4 + 0x454df9], al
mov byte [edi*4 + 0x4549f8], al
mov byte [edi*4 + 0x4545fb], al
mov byte [edi*4 + 0x4541fa], al
call fcn.00414c7a
mov byte [ebp*4 + 0x453dfb], al
mov byte [ebp*4 + 0x4539fa], al
mov byte [ebp*4 + 0x4535f9], al
mov byte [ebp*4 + 0x4531f8], al
inc ebp
mov byte [edi*4 + 0x454dfb], al
mov byte [edi*4 + 0x4549fa], al
mov byte [edi*4 + 0x4545f9], al
mov byte [edi*4 + 0x4541f8], al
cmp ebp, 0x100
jl 0x414416
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x414bf0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ecx
mov edx, ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
lea eax, [edx + 0x18]
mov dword [esp + 8], eax
movups xmm2, xmmword [edx + 8]
test esi, esi
je 0x414c70
mov ecx, dword [esp + 0x10]
mov eax, ecx
add ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
movups xmm3, xmmword [eax]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 8]
dec ecx
movups xmm1, xmmword [eax]
pxor xmm1, xmm3
test ecx, ecx
jle 0x414c4d
mov eax, ecx
shl eax, 4
add eax, dword [esp + 8]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x414c3d
cmp byte [edx + 1], 0
movups xmm0, xmmword [edx + 0x18]
aesdeclast xmm1, xmm0
je 0x414c60
pxor xmm1, xmm2
mov eax, edi
movaps xmm2, xmm3
add edi, 0x10
movups xmmword [eax], xmm1
sub esi, 1
jne 0x414c0c
pop edi
movups xmmword [edx + 8], xmm2
pop esi
pop ecx
ret 0xc

Function at 0x414ca4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x449778]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
cmp dword [ebp + 4], ebx
jle 0x414d5d
push esi
push edi
lea edi, [ebp + 0x28]
mov dword [esp + 0x14], edi
lea eax, [edi + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x20]
mov ebp, eax
push 4
add ebx, esi
pop edi
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x454df8]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x4545f8]
xor dl, byte [esi + eax*4 + 0x4541f8]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x4549f8]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x414ce7
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x414cdc
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.00426bf0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, dword [ebp + 4]
jl 0x414cd3
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.004256b4
add esp, 0x24
ret
Function at 0x414d6e
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x449778]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x24]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00426bf0
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x414dfa
cmp ebx, dword [ebp + 4]
jg 0x414f52
cmp edi, esi
jge 0x414de7
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x414de3
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x414dc3
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x414ded
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x414dae
cmp ebx, dword [ebp + 4]
jg 0x414f52
mov edi, 0x449140
movzx eax, byte [esp + esi*4 + 0x19]
mov cl, byte [esp + 0x1c]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x1c], cl
movzx eax, byte [esp + esi*4 + 0x1a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1d], al
movzx eax, byte [esp + esi*4 + 0x1b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1e], al
movzx eax, byte [esp + esi*4 + 0x18]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1f], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x18], edi
cmp esi, 8
je 0x414e89
cmp esi, 1
jle 0x414e7d
lea ecx, [esp + 0x20]
lea ebp, [esi - 1]
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414e69
sub ebp, 1
jne 0x414e66
mov ebp, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x414f45
jmp 0x414ef9
push 3
lea ecx, [esp + 0x24]
pop ebp
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414e93
sub ebp, 1
jne 0x414e90
movzx eax, byte [esp + 0x28]
lea ecx, [esp + 0x30]
push 3
pop ebp
mov al, byte [eax + str.cw]
xor byte [esp + 0x2c], al
movzx eax, byte [esp + 0x29]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2f], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414ee9
sub ebp, 1
jne 0x414ee6
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 4]
jg 0x414f41
cmp edi, esi
jge 0x414f2e
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x414f31
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x414f0e
cmp edx, 4
jne 0x414f34
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x414ef9
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp ebx, dword [ebp + 4]
jle 0x414e08
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004256b4
add esp, 0x30
ret 4
Function at 0x415145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x455200]
test esi, esi
jne 0x415163
mov ecx, 0x4551f8
call fcn.004150d0
mov esi, dword [0x455200]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x4151ae
test esi, esi
je 0x4151d2
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c280]
call esi
test eax, eax
jne 0x4151f6
push str.CryptProtectMemory_failed
mov esi, 0x44e0c8
push esi
call fcn.0040930f
pop ecx
pop ecx
mov ecx, esi
call fcn.00409524
push 2
mov ecx, esi
call fcn.0040930a
jmp 0x4151f6
mov esi, dword [0x455204]
test esi, esi
je 0x4151d2
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c280]
call esi
test eax, eax
jne 0x4151f6
push str.CryptUnprotectMemory_failed
jmp 0x41518f
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x4151f5
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x4b]
add al, dl
lea ecx, [edx + esi]
xor byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x4151e5
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x415ba8
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x415ea6
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4