joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4609c0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x28]
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x108], 0
call fcn.00487e90
push edi
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.004869e0
push 0x4cae10
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.00486a3f
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00486a3f
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x30e]
push edx
mov word [ebp - 0x310], cx
call fcn.00487e90
add esp, 0x3c
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x310]
push edx
xor edi, edi
call esi
test eax, eax
je 0x460ad5
lea ebx, [ebx]
movzx eax, word [ebp + edi*2 - 0x310]
cmp eax, 0x5c
je 0x460aa2
cmp eax, 0x2f
jne 0x460ac7
xor eax, eax
push eax
lea ecx, [ebp - 0x310]
push ecx
mov word [ebp + edi*2 - 0x310], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
mov word [ebp + edi*2 - 0x310], dx
lea eax, [ebp - 0x310]
push eax
inc edi
call esi
cmp edi, eax
jne 0x460a90
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x318]
push ecx
mov esi, ebx
mov dword [ebp - 0x314], 0x23
mov dword [ebp - 0x318], 0
call fcn.004628d0
test eax, eax
jne 0x460b65
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x460b37
pop edi
pop esi
lea eax, [ebx + 0x23]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x318]
push ebx
lea eax, [ebp - 0x31c]
push eax
push edi
push ecx
push esi
mov dword [ebp - 0x31c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x460b5e
mov dword [ebp - 0x314], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x314]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482469
mov esp, ebp
pop ebp
ret

Function at 0x461430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
push esi
push 1
push ecx
call fcn.004863e2
sub esi, eax
add esp, 0x10
neg esi
sbb eax, eax
and eax, str._read_write_error
pop esi
pop ebp
ret 8
Function at 0x4667f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4e7a80], ecx
inc edx
cmp edx, 0x100
jb 0x4667f2
ret

Function at 0x4668a0
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x4668ca
push esi
jmp 0x4668b0
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4e7a80]
inc edx
dec ecx
jne 0x4668b0
pop esi
ret
Function at 0x4673a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x4673c2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x4673f0
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4673f0
inc edi
cmp edi, edx
jb 0x4673e1
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x4674f7
cmp eax, 3
jbe 0x467427
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x467464
cmp al, 0xff
je 0x467464
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4673d5
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x46740b
movzx eax, byte [esi + 0x4b8e34]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x4b8e2c], 0
mov al, byte [ecx + 4]
je 0x467450
test al, al
je 0x467450
cmp al, 0xff
jne 0x46740b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4673d5
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x4674c7
movzx edx, byte [esi + 0x4b8e34]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x4674ae
cmp cl, 0xff
jne 0x4674c4
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x467482
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x4673d5
cmp eax, 3
jbe 0x46750c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00469940
add esp, 4
xor ebx, ebx
lea ecx, [ebp - 0x48]
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00468e20
mov ecx, esi
call fcn.004027a0
mov ecx, esi
mov dword [ebp - 0x50], eax
call fcn.00416500
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
mov ecx, edi
mov dword [ebp - 0x4c], eax
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x468f3f
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
push ebx
lea ecx, [ebp - 0x54]
push ecx
push edx
push eax
push esi
mov dword [ebp - 0x54], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.0040aa80
lea ecx, [ebp - 0x48]
call fcn.0040aa80
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret

Function at 0x469090
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad408
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov esi, ecx
push 0x4c60f4
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00416450
mov ecx, esi
call fcn.0040a2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469108
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.00469940
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x5c]
jne 0x469128
call fcn.0040aa80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret 4
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00469680
lea eax, [ebp - 0x78]
push eax
lea edi, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004697e0
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00408010
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.0040aa80
mov ecx, edi
test ecx, ecx
je 0x46919f
lea ecx, [ebp - 0x3e]
mov edx, edi
call fcn.004691e0
test eax, eax
je 0x46919f
mov esi, dword [ebp - 0x3a]
lea ecx, [ebp - 0x5c]
call fcn.004027a0
cmp esi, eax
jne 0x46919f
cmp dword [ebp - 0x4c], 0
je 0x46919f
lea edx, [ebp - 0x33]
test edx, edx
je 0x46919f
mov eax, edx
push eax
mov ecx, ebx
call fcn.00469260
test eax, eax
je 0x46919f
mov esi, 1
jmp 0x4691a1
xor esi, esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4691bf
push eax
call fcn.00482e51
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x5c]
call fcn.0040aa80
mov eax, esi
jmp 0x46910a
Function at 0x469940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e06b8]
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 ebx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
call fcn.0040a2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469a3c
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, esi
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x469a3c
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x469a3c
lea eax, [edi + 1]
push eax
call fcn.004819f2
mov esi, eax
add esp, 4
test esi, esi
je 0x469a3c
lea eax, [edi + 1]
push eax
push 0
push esi
call fcn.00487e90
mov ecx, dword [ebp - 0x3c]
push edi
push esi
call fcn.00469a70
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x38], esp
call fcn.00411420
lea ecx, [ebp - 0x2c]
call fcn.00404340
push 0
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0040aa00
mov ecx, dword [ebp - 0x38]
push ecx
add edi, esi
push edi
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.0046cc90
push esi
mov dword [ebp - 4], 1
call fcn.00482e51
add esp, 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00434180
lea ecx, [ebp - 0x2c]
call fcn.0040aa80
jmp 0x469a48
push 0x4c60f4
mov ecx, ebx
call fcn.00416480
mov eax, ebx
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.00482469
mov esp, ebp
pop ebp
ret

Function at 0x469a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x469abb
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab9d1
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x80]
push str.NameValuePairs:_type_mismatch_for_
push eax
mov dword [ebp - 0xc0], esi
call fcn.0045dc90
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, str.__stored_
mov dword [ebp - 4], 0
call fcn.0045dbf0
add esp, 0x14
mov dword [ebp - 0xbc], eax
push 0x4e3e04
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00482674
mov edx, dword [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, eax
call fcn.0045dbf0
push eax
lea edx, [ebp - 0x48]
push edx
mov ecx, str.__trying_to_retrieve_
mov byte [ebp - 4], 2
call fcn.0045dbf0
add esp, 0x10
mov dword [ebp - 0xbc], eax
push 0x4e3e04
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00482674
mov ecx, dword [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, eax
call fcn.0045dbf0
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4ca4f8
mov byte [ebp - 4], 4
call fcn.0045dbf0
add esp, 0x10
mov dword [ebp - 0xbc], eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00482478
mov ecx, dword [ebp - 0xbc]
mov byte [ebp - 4], 6
push ecx
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 1
call fcn.004105a0
lea ecx, [ebp - 0x64]
mov dword [esi], vtable.CryptoPP::InvalidArgument.0
call fcn.0040aa80
lea ecx, [ebp - 0x2c]
call fcn.0040aa80
lea ecx, [ebp - 0x48]
call fcn.0040aa80
lea ecx, [ebp - 0x9c]
call fcn.0040aa80
lea ecx, [ebp - 0xb8]
call fcn.0040aa80
lea ecx, [ebp - 0x80]
call fcn.0040aa80
mov dword [esi], vtable.CryptoPP::NameValuePairs::ValueTypeMismatch.0
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret 8

Function at 0x46b150
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9f30
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x58], 0x10
lea ecx, [eax + 0x10]
mov dword [ecx + 0x4c], ecx
mov dl, 1
mov byte [ecx + 0x41], dl
mov dword [eax + 0xa8], 0x10
mov byte [eax + 0xa1], dl
lea ecx, [eax + 0x60]
mov dword [ecx + 0x4c], ecx
mov ecx, dword [eax + 0xac]
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [eax], vtable.CryptoPP::SHA1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret 4
Function at 0x46e010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4e06b8]
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 ebx, dword [ebp + 8]
cmp dword [ebx + 0x44], 0
je 0x46e1a5
cmp byte [ebx + 0x49], 0
je 0x46e1a5
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x46e199
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
call fcn.00411420
lea ecx, [ebp - 0x2c]
call fcn.00404340
push 0
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0040aa00
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a6c0
test al, al
je 0x46e0b4
push 0
push 8
push 0
lea ecx, [ebp - 0x2c]
call fcn.00416300
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a9c0
mov dword [ebp - 4], 1
jmp 0x46e0c0
lea ecx, [ebp - 0x2c]
call fcn.0040aaa0
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041b1f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x40], esi
call fcn.0040aaa0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.0041b1f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], edi
call fcn.004027a0
mov ecx, dword [ebx + 0x44]
mov edx, dword [ecx]
add eax, esi
lea esi, [ebp - 0x3c]
push esi
push eax
push edi
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
sub eax, 0
je 0x46e122
dec eax
je 0x46e126
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x46e194
jmp 0x46e1a0
mov byte [ebx + 0x49], 0
lea ecx, [ebp - 0x2c]
call fcn.0040aaa0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.0041b1f0
mov esi, dword [ebp - 0x3c]
sub esi, edi
mov dword [ebp - 0x34], edi
je 0x46e173
lea ecx, [ebp - 0x2c]
call fcn.0040aaa0
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.0041b1f0
mov eax, dword [ebx + 0x54]
push eax
push esi
push 1
push edi
mov dword [ebp - 0x30], edi
call fcn.00487613
add esp, 0x10
cmp esi, eax
jne 0x46e191
cmp byte [ebx + 0x49], 0
je 0x46e19d
test esi, esi
jne 0x46e0c0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004149e0
jmp 0x46e0c0
lea ecx, [ebp - 0x2c]
call fcn.0040aa80
xor al, al
jmp 0x46e1a7
lea ecx, [ebp - 0x2c]
call fcn.0040aa80
mov al, 1
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.00482469
mov esp, ebp
pop ebp
ret 4
Function at 0x471840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ac16b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4e06b8]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push edi
mov eax, dword [0x4e06b8]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x94]
lea edi, [esp + 0x64]
mov dword [esp + 0xc], esi
call fcn.00471720
mov edi, eax
push 0x4cadb0
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x98], 0
call fcn.00470030
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ebx, 1
mov ecx, eax
mov byte [esp + 0xa0], bl
call fcn.00471590
push eax
lea edx, [esp + 0x60]
push edx
mov ecx, str._is_not_a_valid_key_length
mov byte [esp + 0xa8], 2
call fcn.0045dbf0
add esp, 0x1c
mov edi, eax
mov ecx, esi
mov byte [esp + 0x8c], 3
call fcn.00482478
mov byte [esp + 0x8c], 4
push edi
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], ebx
call fcn.004105a0
lea ecx, [esp + 0x48]
mov dword [esi], vtable.CryptoPP::InvalidArgument.0
call fcn.0040aa80
lea ecx, [esp + 0x10]
call fcn.0040aa80
lea ecx, [esp + 0x2c]
call fcn.0040aa80
lea ecx, [esp + 0x64]
call fcn.0040aa80
mov dword [esi], vtable.CryptoPP::InvalidKeyLength.0
mov eax, esi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00482469
add esp, 0x84
ret 4

Function at 0x471960
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x4719a4
mov edi, ebx
sub esi, edx
mov eax, edx
sub edi, edx
mov dword [esp + 0xc], ecx
push ebp
mov ebp, dword [esi + eax]
xor ebp, dword [eax]
add eax, 4
dec ecx
mov dword [edi + eax - 4], ebp
jne 0x471988
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop ebp
add eax, eax
add eax, eax
sub edi, eax
je 0x4719cd
add ebx, eax
add esi, eax
add edx, eax
test edi, edi
je 0x4719cd
mov ecx, esi
mov esi, ebx
sub ecx, edx
mov eax, edx
sub esi, edx
mov dl, byte [eax + ecx]
xor dl, byte [eax]
inc eax
dec edi
mov byte [eax + esi - 1], dl
jne 0x4719c0
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4719e0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, eax
mov eax, ebp
shr eax, 2
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x471a1a
mov edx, edi
sub esi, edi
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esi + edx]
xor ebx, dword [edx]
add edx, 4
or ecx, ebx
dec eax
jne 0x471a04
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
pop ebx
lea eax, [edx*4]
sub ebp, eax
jne 0x471a31
pop edi
xor eax, eax
test ecx, ecx
pop esi
sete al
pop ebp
pop ecx
ret
add esi, eax
add edi, eax
mov eax, ecx
mov edx, ecx
shr edx, 0x10
shr eax, 0x18
or al, dl
mov edx, ecx
shr edx, 8
or al, dl
or cl, al
test ebp, ebp
je 0x471a5f
mov eax, edi
sub esi, edi
mov edi, ebp
mov dl, byte [eax + esi]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x471a54
pop edi
xor eax, eax
test cl, cl
pop esi
sete al
pop ebp
pop ecx
ret
Function at 0x472e40
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [eax + 0x8c]
push edi
add ecx, 8
mov edi, 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4b81d0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4b83d0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4b85d0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x4b87d0]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4b82d0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4b84d0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4b86d0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x4b88d0]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4b81d0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4b83d0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4b85d0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x4b87d0]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4b82d0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4b84d0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4b86d0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x4b88d0]
xor esi, ebx
dec edi
jne 0x472e62
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4777c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ac9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4e06b8]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x4e06b8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx]
push 1
push 0x4e6778
mov dword [esp + 0x28], edx
xor edx, edx
push edx
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
push eax
mov eax, dword [esi + 0x80]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.1.0
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00482469
mov esp, ebp
pop ebp
ret 8

Function at 0x47a800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad0c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4e06b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4ca150
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004784e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [ebp + 8]
call fcn.004783f0
add esp, 8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00404200
lea ecx, [ebp - 0x10]
call fcn.0040a2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47a8c3
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], esp
mov esi, esp
call fcn.00404180
call fcn.00469370
push eax
mov ecx, esi
call fcn.00403c90
mov edx, dword [edi + 8]
lea esi, [edi + 4]
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 8], edx
call fcn.0041b1f0
mov eax, dword [esi]
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0041b1f0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push ecx
push edx
lea esi, [ebp - 0x1c]
call fcn.0047b250
add esp, 0xc
mov ecx, esi
call fcn.00404200
lea ecx, [ebp - 0x10]
call fcn.00404200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4