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

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40166d
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x435f10]
inc edi
sub esi, 1
jne 0x401655
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x401fc0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1058
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x1064]
push edi
mov edi, ecx
mov dword [esp + 0xc], ebp
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x402005
test bl, 4
jne 0x402005
xor al, al
jmp 0x402007
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x402020
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x40202f
or ebx, 2
lea ecx, [esp + 0x1c]
call fcn.00401c4a
cmp byte [edi + 0x24], 0
je 0x402044
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4020ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x18]
call fcn.00403c9d
test al, al
je 0x4020b8
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4020b3
mov dword [esp + 0x14], eax
jmp 0x4020b3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x4020c9
cmp dword [esp + 0x14], 2
jne 0x4020c9
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x4020ef
cmp ebp, 0xffffffff
je 0x4020ef
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x40211b
push 0x800
push dword [esp + 0x10]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.00407077
mov byte [edi + 0x25], 0
mov ecx, dword [esp + 0x1060]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x1058
ret 8
Function at 0x40263a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jne 0x40264f
mov al, 1
jmp 0x40276a
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40266b
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40266f
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x4026c3
xor edi, edi
test esi, esi
je 0x4026e4
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x402694
mov eax, 0x4000
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x4026e0
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x402684
jmp 0x4026e0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x28]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x402762
cmp byte [ebp + 0x1e], 0
je 0x402762
cmp dword [ebp + 0x10], 0
jne 0x402762
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x45bdac
push edi
call fcn.00401867
test al, al
je 0x402755
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x402671
cmp dword [esp + 0x10], 0
jbe 0x402671
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x42a230]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x42a230]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x402671
push edi
push 0
mov ecx, 0x45bdac
call fcn.00401b8e
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402b65
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.00403c9d
test al, al
je 0x402b65
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00416559
leave
ret 4
Function at 0x402d29
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040400d
movzx eax, word [eax]
cmp eax, 0x2e
je 0x402d64
cmp eax, 0x20
je 0x402d64
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402d97
push esi
call fcn.00402b04
test al, al
jne 0x402daa
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.00403c9d
test al, al
je 0x402daa
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402daa
cmp byte [ebp + 0xc], 0
je 0x402da6
push dword [ebp + 0x10]
push esi
call fcn.00402f82
xor eax, eax
jmp 0x402dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x402dc2
xor eax, eax
cmp ecx, 3
sete al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416559
leave
ret 0xc

Function at 0x402f82
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x402fdc
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.00403c9d
test al, al
je 0x402fdc
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00416559
leave
ret 8
Function at 0x403230
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x1264]
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x1270]
push eax
cmp esi, ebp
jne 0x4032d0
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x4032eb
push 0x800
lea eax, [esp + 0x264]
push eax
push ebx
call fcn.00403c9d
test al, al
je 0x4032aa
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x4032eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4032c3
cmp eax, 3
je 0x4032c3
cmp eax, 0x12
je 0x4032c3
mov al, 1
jmp 0x4032c5
xor al, al
mov byte [edi + 0x1044], al
jmp 0x403393
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4032eb
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x4032c5
mov ebp, 0x800
push ebp
push ebx
push edi
call fcn.00407077
push ebp
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004040e4
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 + 0x1004], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x102c], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1034], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x1038], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00407b2a
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00407b2a
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00407b2a
and dword [edi + 0x1040], 0
mov eax, esi
mov ecx, dword [esp + 0x1260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x1254
ret 0xc
Function at 0x403c9d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
cmp word [esi], 0
je 0x403e36
push esi
call fcn.00403e53
push esi
call fcn.0041b233
pop ecx
push esi
mov ebx, eax
call fcn.00403e7e
test al, al
je 0x403d76
push esi
call fcn.00403e53
test al, al
je 0x403d2f
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x403e36
push dword [esp + 0x1020]
push 0x42a624
push edi
call fcn.00407077
push dword [esp + 0x1020]
push esi
push edi
call fcn.0040704f
mov al, 1
jmp 0x403e38
push 0x5c
pop eax
cmp word [esi], ax
jne 0x403e36
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x403e36
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x403e36
push esi
push 0x42a624
push edi
call fcn.00407077
push esi
push 0x42a630
push edi
call fcn.0040704f
push esi
push ebp
jmp 0x403d22
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403e36
cmp eax, ebp
ja 0x403e36
movzx eax, word [esi]
push eax
call fcn.00403eb3
test al, al
je 0x403ddb
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x403e36
push ebx
push 0x42a624
push edi
call fcn.00407077
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.0040704f
push ebx
jmp 0x403d21
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.0040383d
lea eax, [esp + 0x10]
push eax
call fcn.0041b233
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x403e36
push ebx
push 0x42a624
push edi
call fcn.00407077
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040704f
cmp word [esi], 0x2e
jne 0x403dd5
movzx eax, word [esi + 2]
push eax
call fcn.00403eb3
test al, al
je 0x403dd5
add esi, 4
jmp 0x403dd5
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x1004
ret 0xc
Function at 0x405455
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 + 0x43bf38], cl
inc ecx
cmp ecx, 0x100
jl 0x40545e
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x43cc39], al
mov byte [ebp*4 + 0x43cc38], al
mov byte [ebp*4 + 0x43c83b], al
mov byte [ebp*4 + 0x43c838], al
mov byte [ebp*4 + 0x43c43b], al
mov byte [ebp*4 + 0x43c43a], al
mov byte [ebp*4 + 0x43c03a], al
mov byte [ebp*4 + 0x43c039], al
call fcn.00405c2c
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x43cc3b], al
mov byte [ebp*4 + 0x43c83a], al
mov byte [ebp*4 + 0x43c439], al
mov byte [ebp*4 + 0x43c038], al
call fcn.00405c2c
mov bl, byte [ebp + 0x43bf38]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43cc3a], al
mov byte [ebp*4 + 0x43c839], al
mov byte [ebp*4 + 0x43c438], al
mov byte [ebp*4 + 0x43c03b], al
call fcn.00405c2c
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43dc3a], al
mov byte [ebp*4 + 0x43d839], al
mov byte [ebp*4 + 0x43d438], al
mov byte [ebp*4 + 0x43d03b], al
mov byte [edi*4 + 0x43ec3a], al
mov byte [edi*4 + 0x43e839], al
mov byte [edi*4 + 0x43e438], al
mov byte [edi*4 + 0x43e03b], al
call fcn.00405c2c
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43dc38], al
mov byte [ebp*4 + 0x43d83b], al
mov byte [ebp*4 + 0x43d43a], al
mov byte [ebp*4 + 0x43d039], al
mov byte [edi*4 + 0x43ec38], al
mov byte [edi*4 + 0x43e83b], al
mov byte [edi*4 + 0x43e43a], al
mov byte [edi*4 + 0x43e039], al
call fcn.00405c2c
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43dc39], al
mov byte [ebp*4 + 0x43d838], al
mov byte [ebp*4 + 0x43d43b], al
mov byte [ebp*4 + 0x43d03a], al
mov byte [edi*4 + 0x43ec39], al
mov byte [edi*4 + 0x43e838], al
mov byte [edi*4 + 0x43e43b], al
mov byte [edi*4 + 0x43e03a], al
call fcn.00405c2c
mov byte [ebp*4 + 0x43dc3b], al
mov byte [ebp*4 + 0x43d83a], al
mov byte [ebp*4 + 0x43d439], al
mov byte [ebp*4 + 0x43d038], al
inc ebp
mov byte [edi*4 + 0x43ec3b], al
mov byte [edi*4 + 0x43e83a], al
mov byte [edi*4 + 0x43e439], al
mov byte [edi*4 + 0x43e038], al
cmp ebp, 0x100
jl 0x405474
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x405ba7
Capabilities:
Encrypt data using aes via x86 extensions

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

Function at 0x405c56
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x43565c]
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 0x405d0f
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 + 0x43ec38]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43e438]
xor dl, byte [esi + eax*4 + 0x43e038]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43e838]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x405c99
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x405c8e
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.00417d40
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 0x405c85
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x24
ret
Function at 0x405d20
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x43565c]
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.00417d40
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x405dac
cmp ebx, dword [ebp + 4]
jg 0x405f04
cmp edi, esi
jge 0x405d99
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405d95
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 0x405d75
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x405d9f
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x405d60
cmp ebx, dword [ebp + 4]
jg 0x405f04
mov edi, 0x435108
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 0x405e3b
cmp esi, 1
jle 0x405e2f
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 0x405e1b
sub ebp, 1
jne 0x405e18
mov ebp, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x405ef7
jmp 0x405eab
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 0x405e45
sub ebp, 1
jne 0x405e42
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 0x405e9b
sub ebp, 1
jne 0x405e98
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 4]
jg 0x405ef3
cmp edi, esi
jge 0x405ee0
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405ee3
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 0x405ec0
cmp edx, 4
jne 0x405ee6
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x405eab
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp ebx, dword [ebp + 4]
jle 0x405dba
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x30
ret 4
Function at 0x406075
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x43f040]
test esi, esi
jne 0x406093
mov ecx, 0x43f038
call fcn.00406000
mov esi, dword [0x43f040]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x4060de
test esi, esi
je 0x406102
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a230]
call esi
test eax, eax
jne 0x406126
push str.CryptProtectMemory_failed
mov esi, 0x45bdac
push esi
call fcn.004018e8
pop ecx
pop ecx
mov ecx, esi
call fcn.00401a92
push 2
mov ecx, esi
call fcn.004018e3
jmp 0x406126
mov esi, dword [0x43f044]
test esi, esi
je 0x406102
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a230]
call esi
test eax, eax
jne 0x406126
push str.CryptUnprotectMemory_failed
jmp 0x4060bf
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x406125
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 0x406115
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x406b20
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 0x40bb8e
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x44f6b0], 0
je 0x40bb9b
or eax, 0xffffffff
ret
mov eax, dword [0x43f58c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40bbd9
mov ecx, dword [0x43f588]
jl 0x40bbb4
cmp ecx, ebp
ja 0x40bbd9
or ebx, 0xffffffff
mov dword [0x44f5d0], ebp
add ecx, ebx
mov dword [0x44f5d4], ebp
mov dword [0x43f588], ecx
adc eax, ebx
mov dword [0x43f58c], eax
mov eax, ebx
jmp 0x40bce3
push esi
push edi
mov edi, dword [0x44f5d4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40bc3e
jl 0x40bbf4
mov esi, dword [0x44f5d0]
cmp esi, ebp
ja 0x40bc44
mov esi, 0x2000
push esi
push dword [0x44f5c4]
call fcn.0040bebd
cdq
mov ecx, eax
mov dword [0x44f5d0], eax
or ecx, edx
mov dword [0x44f5d4], edx
je 0x40bc80
and eax, edx
cmp eax, ebx
je 0x40bc71
add dword [0x44f608], esi
mov eax, dword [0x44f5c4]
adc dword [0x44f60c], ebp
mov dword [0x44f5c8], eax
call fcn.0040b5ba
mov edi, dword [0x44f5d4]
mov esi, dword [0x44f5d0]
mov eax, dword [0x43f5b8]
test byte [eax + 0x70], 1
je 0x40bcc3
cmp byte [0x45076d], 0
mov eax, esi
je 0x40bc90
or eax, edi
je 0x40bcc3
push esi
push dword [0x44f5c8]
push 0x450778
call fcn.0040f55b
jmp 0x40bcb7
push 0x46601a
mov ecx, 0x45bdac
call fcn.00401a13
mov dword [0x44f5d0], ebp
mov eax, ebx
mov dword [0x44f5d4], ebp
jmp 0x40bce1
or eax, edi
mov ebp, dword [0x44f5c8]
je 0x40bcc3
add esi, ebx
adc edi, ebx
call fcn.0040f326
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040f44d
mov eax, esi
inc ebp
or eax, edi
jne 0x40bc9a
mov esi, dword [0x44f5d0]
mov edi, dword [0x44f5d4]
mov eax, dword [0x44f5c8]
add esi, ebx
mov dword [0x44f5d0], esi
adc edi, ebx
mov dword [0x44f5d4], edi
movzx eax, byte [eax]
inc dword [0x44f5c8]
pop edi
pop esi
pop ebp
pop ebx
ret