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

Disassembly:
arpl word [0xee88baaf], si
fld xword [ecx + 0x666956b9]
stc
inc eax
jecxz 0x10048669
and byte [ebx + 0x32], ch
dec eax
invalid
aas
push 0xb346d85e
stosd dword es:[edi], eax
js 0x100485f1
cdq
push ecx
cdq
cmp al, 0x44
push edi
js 0x10048621
cmp byte [eax*2 - 0x74b28814], cl
out 0xd4, eax
bound edx, qword [ecx - 0x7fbbdb19]
push 0xffffffffffffffe4
pop es
jae 0x100485f8
mov ecx, 0xac09b8e3
cli
dec ecx
ja 0x10048655
retf
cdq
add dword [edx + ebx*8 - 0x2685fe2d], esi
xchg bh, al
int3

Function at 0x105e3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105e31a8
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 0x105e307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e306a
add dl, dl
jne 0x105e3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e30dc
xor eax, eax
add dl, dl
jne 0x105e3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e317d
add dl, dl
jne 0x105e30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105e30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105e3075
mov eax, 1
add dl, dl
jne 0x105e30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e30e1
sub eax, ebx
mov ebx, 1
jne 0x105e3128
mov ecx, 1
add dl, dl
jne 0x105e310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105e313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e3136
cmp eax, 0x7d00
jae 0x105e316d
cmp eax, 0x500
jb 0x105e3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e3075
cmp eax, 0x7f
ja 0x105e3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105e319e
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 0x105e3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401595
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4015c7
test dl, 7
je 0x4015c7
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015a7
cmp esi, 8
jb 0x401657
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42fa30]
xor ecx, dword [eax*4 + 0x42fe30]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x430230]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x430a30]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x430e30]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x431230]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x430630]
movzx eax, bl
xor ecx, dword [eax*4 + 0x431630]
mov ebx, ecx
sub edi, 1
jne 0x4015d6
pop edi
test esi, esi
je 0x401673
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
sub esi, 1
jne 0x40165b
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c63
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401c7c
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401cef
mov ecx, esi
call fcn.00401d50
test al, al
je 0x401cb7
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401cb7
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c63
jmp 0x401cf2
cmp dword [esi + 0xc], 1
jne 0x401ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401ccc
xor eax, eax
jmp 0x401cf2
cmp dword [esi + 0xc], 0
jne 0x401cea
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401cea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401cea
push ebx
jmp 0x401cab
or eax, 0xffffffff
jmp 0x401cf2
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401d7b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.00411c40
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401da5
mov cl, dl
test bl, 4
je 0x401da7
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401dcc
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401ddb
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401e6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.00403283
test al, al
je 0x401e59
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401e54
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401e6a
cmp dword [esp + 0x10], 2
jne 0x401e6a
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x401e99
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00405c1f
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8
Function at 0x40218a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x40219d
mov al, 1
jmp 0x40228b
cmp dword [edi + 0xc], 1
jne 0x4021ae
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x402203
xor esi, esi
test ebp, ebp
je 0x402225
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x4021d3
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x402225
add esi, 0x4000
cmp esi, ebp
jb 0x4021c3
jmp 0x402221
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x402283
cmp byte [edi + 0x14], 0
je 0x402283
cmp dword [edi + 0xc], 0
jne 0x402283
push 0
lea esi, [edi + 0x1e]
mov ecx, 0x44c844
push esi
call fcn.00401791
test al, al
je 0x402276
cmp dword [esp + 0x18], ebp
jae 0x4021b0
cmp dword [esp + 0x18], 0
jbe 0x4021b0
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0x10]
jmp 0x4021b0
push esi
push 0
mov ecx, 0x44c844
call fcn.0040199e
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8

Function at 0x4023fe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411c40
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402443
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403283
test al, al
je 0x402443
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402480
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411c40
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00403592
movzx eax, word [eax]
cmp eax, 0x2e
je 0x4024b1
cmp eax, 0x20
je 0x4024b1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4024e4
push esi
call fcn.004023ea
test al, al
jne 0x4024f7
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.00403283
test al, al
je 0x4024f7
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4024f7
cmp byte [ebp + 0xc], 0
je 0x4024f3
push dword [ebp + 0x10]
push esi
call fcn.004026bd
xor eax, eax
jmp 0x40250f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40250c
cmp eax, 3
je 0x40250c
xor eax, eax
inc eax
jmp 0x40250f
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4026bd
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411c40
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x40270d
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403283
test al, al
je 0x40270d
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40286d
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00411c40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x402907
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x40292e
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.00403283
test al, al
je 0x4028e0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x40292e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4028fa
cmp eax, 3
je 0x4028fa
cmp eax, 0x12
je 0x4028fa
xor eax, eax
inc eax
jmp 0x4028fc
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x4029dc
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402926
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x4029dc
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.00405c1f
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00403669
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00406664
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00406664
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00406664
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x403283
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411c40
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4032a1
xor al, al
jmp 0x40340b
push ebx
push edi
push esi
call fcn.00403412
push esi
call fcn.00416e83
pop ecx
push esi
mov edi, eax
call fcn.0040343e
test al, al
je 0x403333
push esi
call fcn.00403412
test al, al
je 0x4032ea
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x403407
push dword [ebp + 0x10]
push 0x4252fc
push dword [ebp + 0xc]
call fcn.00405c1f
push dword [ebp + 0x10]
jmp 0x4033fa
push 0x5c
pop eax
cmp word [esi], ax
jne 0x403407
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x403407
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x403407
push esi
push 0x4252fc
push dword [ebp + 0xc]
call fcn.00405c1f
push esi
push 0x425308
push dword [ebp + 0xc]
call fcn.00405bf7
push esi
push ebx
jmp 0x4033fb
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403407
cmp eax, ebx
ja 0x403407
movzx eax, word [esi]
push eax
call fcn.00403474
test al, al
je 0x40339a
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x403407
push edi
push 0x4252fc
push dword [ebp + 0xc]
call fcn.00405c1f
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00405bf7
jmp 0x4033f9
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402e95
lea eax, [ebp - 0x1000]
push eax
call fcn.00416e83
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x403407
push edi
push 0x4252fc
push dword [ebp + 0xc]
call fcn.00405c1f
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00405bf7
cmp word [esi], 0x2e
jne 0x4033f9
movzx eax, word [esi + 2]
push eax
call fcn.00403474
test al, al
je 0x4033f9
add esi, 4
push edi
push esi
push dword [ebp + 0xc]
call fcn.00405bf7
mov al, 1
jmp 0x403409
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4048a5
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp dword [esp + 8], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [ecx + 0x18]
jbe 0x40491f
mov edx, dword [esp + 0x14]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4048cf
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x404901
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 0xc], edi
lea edi, [ecx + 0x18]
sub dword [esp + 0xc], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x4048eb
mov edx, dword [esp + 0x14]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x10], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x14], edx
movups xmmword [eax], xmm1
jne 0x4048bd
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
ret 0xc

Function at 0x404928
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x4049d6
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x4368a0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x4360a0]
xor dl, byte [esi + eax*4 + 0x435ca0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x4364a0]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x404960
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x404955
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00413490
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x40494c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x4049dc
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x14]
push edi
push 0x20
push dword [esp + 0x40]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00413490
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x404a55
cmp ebx, dword [ebp + 4]
jg 0x404bb2
cmp edx, esi
jge 0x404a49
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x404a45
mov esi, dword [esp + 0x10]
lea ecx, [edi + ebx*4]
mov eax, dword [ebp]
inc edx
add ebp, 4
inc edi
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x404a25
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x404a51
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404a10
cmp ebx, dword [ebp + 4]
jg 0x404bb2
mov edx, 0x433c80
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x433a80]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1b], al
mov al, byte [edx]
xor byte [esp + 0x18], al
inc edx
mov dword [esp + 0x14], edx
cmp esi, 8
je 0x404ae2
cmp esi, 1
jle 0x404b60
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x404ac9
add edx, 4
sub dword [esp + 0x3c], 1
jne 0x404ac7
jmp 0x404b60
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404af1
sub dword [esp + 0x3c], 1
jne 0x404aee
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404b4e
sub dword [esp + 0x3c], 1
jne 0x404b4b
xor edx, edx
test esi, esi
jle 0x404ba5
cmp ebx, dword [ebp + 4]
jg 0x404ba8
cmp edx, esi
jge 0x404b99
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
cmp edi, 4
jge 0x404b9c
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x3c]
add eax, 4
inc edi
mov dword [esp + 0x3c], eax
cmp edx, esi
jl 0x404b7a
cmp edi, 4
jne 0x404ba1
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404b66
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x404a63
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x404cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x436ca8]
test eax, eax
jne 0x404cdb
mov ecx, 0x436ca0
call fcn.00404c41
mov eax, dword [0x436ca8]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
and ecx, 0xfffffff0
cmp byte [ebp + 0x14], dl
setne dl
cmp byte [ebp + 0x10], 0
je 0x404d25
test eax, eax
je 0x404d40
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d65
push str.CryptProtectMemory_failed
mov esi, 0x44c844
push esi
call fcn.004017fc
pop ecx
pop ecx
mov ecx, esi
call fcn.0041687d
push 2
mov ecx, esi
call fcn.004017f7
jmp 0x404d65
mov eax, dword [0x436cac]
test eax, eax
je 0x404d40
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d65
push str.CryptUnprotectMemory_failed
jmp 0x404d06
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x404d64
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x404d56
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4056fc
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 0x40927a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x447340], 0
je 0x409287
or eax, 0xffffffff
ret
mov eax, dword [0x43721c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x4092c5
mov ecx, dword [0x437218]
jl 0x4092a0
cmp ecx, ebp
ja 0x4092c5
or ebx, 0xffffffff
mov dword [0x447260], ebp
add ecx, ebx
mov dword [0x447264], ebp
mov dword [0x437218], ecx
adc eax, ebx
mov dword [0x43721c], eax
mov eax, ebx
jmp 0x4093cf
push esi
push edi
mov edi, dword [0x447264]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40932a
jl 0x4092e0
mov esi, dword [0x447260]
cmp esi, ebp
ja 0x409330
mov esi, 0x2000
push esi
push dword [0x447254]
call fcn.00409563
cdq
mov ecx, eax
mov dword [0x447260], eax
or ecx, edx
mov dword [0x447264], edx
je 0x40936c
and eax, edx
cmp eax, ebx
je 0x40935d
add dword [0x447298], esi
mov eax, dword [0x447254]
adc dword [0x44729c], ebp
mov dword [0x447258], eax
call fcn.00408d12
mov edi, dword [0x447264]
mov esi, dword [0x447260]
mov eax, dword [0x437248]
test byte [eax + 0x40], 1
je 0x4093af
cmp byte [0x4484f5], 0
mov eax, esi
je 0x40937c
or eax, edi
je 0x4093af
push 0x448500
push esi
push dword [0x447258]
call fcn.0040c450
jmp 0x4093a3
push 0x455b62
mov ecx, 0x44c844
call fcn.004018d7
mov dword [0x447260], ebp
mov eax, ebx
mov dword [0x447264], ebp
jmp 0x4093cd
or eax, edi
mov ebp, dword [0x447258]
je 0x4093af
add esi, ebx
adc edi, ebx
call fcn.0040c0bf
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040c1d1
mov eax, esi
inc ebp
or eax, edi
jne 0x409386
mov esi, dword [0x447260]
mov edi, dword [0x447264]
mov eax, dword [0x447258]
add esi, ebx
mov dword [0x447260], esi
adc edi, ebx
mov dword [0x447264], edi
movzx eax, byte [eax]
inc dword [0x447258]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40c120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c0dd
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413490
add esp, 0xc
xor esi, esi
call fcn.0040c0bf
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040c1d1
inc esi
cmp esi, 0xc
jl 0x40c142
mov eax, dword [0x437248]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x4472b7]
test byte [eax + 0x40], 2
jne 0x40c17e
movzx ecx, byte [0x4472bf]
cmp edx, ecx
je 0x40c187
or eax, 0xffffffff
jmp 0x40c1ca
mov ecx, dword [0x447260]
mov eax, ecx
cdq
cmp edx, dword [0x43721c]
jl 0x40c1a4
mov esi, dword [0x437218]
jg 0x40c1a6
cmp eax, esi
ja 0x40c1a6
mov esi, ecx
push edi
mov edi, dword [0x447258]
test esi, esi
je 0x40c1c7
call fcn.0040c0bf
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040c1d1
inc edi
sub esi, 1
jne 0x40c1b1
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8